Enum ErrorCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ErrorCode>, org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageSet

    public enum ErrorCode
    extends java.lang.Enum<ErrorCode>
    implements org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageSet
    • Enum Constant Detail

      • INVALID_CLASSIFICATION_FOR_ENTITY

        public static final ErrorCode INVALID_CLASSIFICATION_FOR_ENTITY
      • INVALID_RELATIONSHIP_ENDS

        public static final ErrorCode INVALID_RELATIONSHIP_ENDS
      • INVALID_INSTANCE

        public static final ErrorCode INVALID_INSTANCE
      • HOME_REFRESH

        public static final ErrorCode HOME_REFRESH
      • REST_CLIENT_FAILURE

        public static final ErrorCode REST_CLIENT_FAILURE
      • INVALID_SEARCH

        public static final ErrorCode INVALID_SEARCH
      • REGEX_NOT_IMPLEMENTED

        public static final ErrorCode REGEX_NOT_IMPLEMENTED
      • NO_HISTORY

        public static final ErrorCode NO_HISTORY
      • EVENT_MAPPER_NOT_INITIALIZED

        public static final ErrorCode EVENT_MAPPER_NOT_INITIALIZED
      • EVENT_MAPPER_IMPROPERLY_INITIALIZED

        public static final ErrorCode EVENT_MAPPER_IMPROPERLY_INITIALIZED
      • TYPEDEF_NOT_SUPPORTED

        public static final ErrorCode TYPEDEF_NOT_SUPPORTED
      • ENTITY_NOT_KNOWN

        public static final ErrorCode ENTITY_NOT_KNOWN
      • RELATIONSHIP_NOT_KNOWN

        public static final ErrorCode RELATIONSHIP_NOT_KNOWN
    • Method Detail

      • values

        public static ErrorCode[] 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 (ErrorCode c : ErrorCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ErrorCode 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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMessageDefinition

        public org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition getMessageDefinition()
        Retrieve a message definition object for an exception. This method is used when there are no message inserts.
        Specified by:
        getMessageDefinition in interface org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageSet
        Returns:
        message definition object.
      • getMessageDefinition

        public org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition getMessageDefinition​(java.lang.String... params)
        Retrieve a message definition object for an exception. This method is used when there are values to be inserted into the message.
        Specified by:
        getMessageDefinition in interface org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageSet
        Parameters:
        params - array of parameters (all strings). They are inserted into the message according to the numbering in the message text.
        Returns:
        message definition object.
      • toString

        public java.lang.String toString()
        toString() JSON-style
        Overrides:
        toString in class java.lang.Enum<ErrorCode>
        Returns:
        string description