Class BindingErrorImpl
java.lang.Object
fr.paris.lutece.portal.util.mvc.binding.BindingErrorImpl
- All Implemented Interfaces:
BindingError,ParamError
Represents an error that occurs during the binding process in the MVC lutece framework.
This class encapsulates details about the error, including the parameter name,
error message, and the submitted value that caused the binding to fail.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable error message for this error.The parameter name of the value that caused the error.Provides access to the raw submitted value of the parameter which caused the binding to fail.voidsetMessage(String message) voidsetParamName(String paramName)
-
Constructor Details
-
BindingErrorImpl
-
-
Method Details
-
getMessage
Description copied from interface:ParamErrorReturns a human-readable error message for this error.- Specified by:
getMessagein interfaceParamError- Returns:
- The human-readable error message
-
setMessage
-
getParamName
Description copied from interface:ParamErrorThe parameter name of the value that caused the error. This is usually the name specified in the binding annotation.- Specified by:
getParamNamein interfaceParamError- Returns:
- The name of the parameter which caused the error
-
setParamName
-
getSubmittedValue
Description copied from interface:BindingErrorProvides access to the raw submitted value of the parameter which caused the binding to fail.- Specified by:
getSubmittedValuein interfaceBindingError- Returns:
- The raw value submitted for the parameter
-