Interface ParamError
- All Known Subinterfaces:
BindingError,ErrorMessage,ValidationError
- All Known Implementing Classes:
BindingErrorImpl,MVCMessage,ValidationError,ValidationErrorImpl
public interface ParamError
Represents an error that occurs during the binding and validation process in the MVC framework.
This interface encapsulates details about the error, including the parameter name
and a human-readable error message.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable error message for this error.The parameter name of the value that caused the error.
-
Method Details
-
getMessage
String getMessage()Returns a human-readable error message for this error.- Returns:
- The human-readable error message
-
getParamName
String getParamName()The parameter name of the value that caused the error. This is usually the name specified in the binding annotation.- Returns:
- The name of the parameter which caused the error
-