Class ExceptionMessageDefinition


  • public class ExceptionMessageDefinition
    extends java.lang.Object
    Class to capture the details of individual error messages.
    • Method Detail

      • getErrorMessage

        public java.lang.String getErrorMessage​(java.lang.String... params)
        Retrieve the formatted, parameterized error message.
        Parameters:
        params - the values to inject into the formatting placeholders of the message
        Returns:
        the formatted error message
      • getHttpErrorCode

        public int getHttpErrorCode()
        HTTP response code for the error.
      • getErrorId

        public java.lang.String getErrorId()
        Unique, language-independent code for the error.
      • getUserAction

        public java.lang.String getUserAction()
        Recommended action for the user to take upon observing this error.