Enum ConformanceSuiteErrorCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ConformanceSuiteErrorCode>

    public enum ConformanceSuiteErrorCode
    extends java.lang.Enum<ConformanceSuiteErrorCode>
    The ConformanceSuiteErrorCode is used to define first failure data capture (FFDC) for errors that occur within the Open Metadata Conformance Suite It is used in conjunction with conformance suite exceptions, both Checked and Runtime (unchecked). The 5 fields in the enum are:
    • HTTP Error Code - for translating between REST and JAVA - Typically the numbers used are:
      • 500 - internal error
      • 501 - not implemented
      • 503 - Service not available
      • 400 - invalid parameters
      • 401 - unauthorized
      • 404 - not found
      • 405 - method not allowed
      • 409 - data conflict errors - eg item already defined
    • Error Message Id - to uniquely identify the message
    • Error Message Text - includes placeholder to allow additional values to be captured
    • SystemAction - describes the result of the error
    • UserAction - describes how a user should correct the error
    • Method Detail

      • values

        public static ConformanceSuiteErrorCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ConformanceSuiteErrorCode c : ConformanceSuiteErrorCode.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ConformanceSuiteErrorCode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getHTTPErrorCode

        public int getHTTPErrorCode()
      • getErrorMessageId

        public java.lang.String getErrorMessageId()
        Returns the unique identifier for the error message.
      • getUnformattedErrorMessage

        public java.lang.String getUnformattedErrorMessage()
        Returns the error message with placeholders for specific details.
        errorMessage (unformatted)
      • getFormattedErrorMessage

        public java.lang.String getFormattedErrorMessage​(java.lang.String... params)
        Returns the error message with the placeholders filled out with the supplied parameters.
        params - strings that plug into the placeholders in the errorMessage
        errorMessage (formatted with supplied parameters)
      • getSystemAction

        public java.lang.String getSystemAction()
        Returns a description of the action taken by the system when the condition that caused this exception was detected.
      • getUserAction

        public java.lang.String getUserAction()
        Returns instructions of how to resolve the issue reported in this exception.