Class MVCMessage

java.lang.Object
fr.paris.lutece.portal.util.mvc.utils.MVCMessage
All Implemented Interfaces:
ParamError, ErrorMessage, Serializable

public class MVCMessage extends Object implements ErrorMessage, Serializable
MVCMessage
See Also:
  • Constructor Details

    • MVCMessage

      public MVCMessage()
      Basic constructor
    • MVCMessage

      public MVCMessage(String strMessage)
      Constructor
      Parameters:
      strMessage - The message
    • MVCMessage

      public MVCMessage(String strMessage, String strFieldName)
      Constructor
      Parameters:
      strMessage - The message
      strFieldName - the field name
  • Method Details

    • getMessage

      public String getMessage()
      Returns a human-readable error message for this error.
      Specified by:
      getMessage in interface ParamError
      Returns:
      The human-readable error message
    • setMessage

      public void setMessage(String message)
      Set the content of this error message
      Parameters:
      message - the message to set
    • setFieldName

      public void setFieldName(String strFieldName)
      Set the FieldName
      Parameters:
      FieldName - the FieldName to set
    • getFieldName

      public String getFieldName()
      Description copied from interface: ErrorMessage
      Returns the field name
      Specified by:
      getFieldName in interface ErrorMessage
      Returns:
      the field name
    • getParamName

      public String getParamName()
      Description copied from interface: ParamError
      The parameter name of the value that caused the error. This is usually the name specified in the binding annotation.
      Specified by:
      getParamName in interface ParamError
      Returns:
      The name of the parameter which caused the error