소소한 메세지 수정

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