소소한 메세지 수정

This commit is contained in:
ParkSeongMin
2016-11-29 16:19:46 +09:00
parent 7b1b7bccd9
commit 2e51f83149

View File

@@ -1,42 +1,42 @@
package com.nexacro.spring.resolve;
import com.nexacro.spring.data.convert.NexacroConvertException;
public class MissingNexacroParameterException extends NexacroConvertException {
private final String parameterName;
private final String parameterType;
/**
* Constructor for MissingServletRequestParameterException.
* @param parameterName the name of the missing parameter
* @param parameterType the expected type of the missing parameter
*/
public MissingNexacroParameterException(String parameterName, String parameterType) {
super("");
this.parameterName = parameterName;
this.parameterType = parameterType;
}
@Override
public String getMessage() {
return "Required " + this.parameterType + " parameter '" + this.parameterName + "' is not present";
}
/**
* Return the name of the offending parameter.
*/
public final String getParameterName() {
return this.parameterName;
}
/**
* Return the expected type of the offending parameter.
*/
public final String getParameterType() {
return this.parameterType;
}
}
package com.nexacro.spring.resolve;
import com.nexacro.spring.data.convert.NexacroConvertException;
public class MissingNexacroParameterException extends NexacroConvertException {
private final String parameterName;
private final String parameterType;
/**
* Constructor for MissingNexacroParameterException.
* @param parameterName the name of the missing parameter
* @param parameterType the expected type of the missing parameter
*/
public MissingNexacroParameterException(String parameterName, String parameterType) {
super("");
this.parameterName = parameterName;
this.parameterType = parameterType;
}
@Override
public String getMessage() {
return "Required " + this.parameterType + " parameter '" + this.parameterName + "' is not present";
}
/**
* Return the name of the offending parameter.
*/
public final String getParameterName() {
return this.parameterName;
}
/**
* Return the expected type of the offending parameter.
*/
public final String getParameterType() {
return this.parameterType;
}
}