커밋되지 않은 소스 추가

This commit is contained in:
ParkSeongMin
2015-10-29 06:00:14 +00:00
parent f5b75b0b11
commit 4a78d11555

View File

@@ -0,0 +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;
}
}