Enum OpenemsError

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

    public enum OpenemsError
    extends java.lang.Enum<OpenemsError>
    Holds named OpenEMS Errors.
    • Enum Constant Detail

      • COMMON_NO_VALID_CHANNEL_ADDRESS

        public static final OpenemsError COMMON_NO_VALID_CHANNEL_ADDRESS
      • COMMON_USER_NOT_AUTHENTICATED

        public static final OpenemsError COMMON_USER_NOT_AUTHENTICATED
      • COMMON_ROLE_ACCESS_DENIED

        public static final OpenemsError COMMON_ROLE_ACCESS_DENIED
      • COMMON_AUTHENTICATION_FAILED

        public static final OpenemsError COMMON_AUTHENTICATION_FAILED
      • COMMON_USER_UNDEFINED

        public static final OpenemsError COMMON_USER_UNDEFINED
      • COMMON_ROLE_UNDEFINED

        public static final OpenemsError COMMON_ROLE_UNDEFINED
      • EDGE_NO_COMPONENT_WITH_ID

        public static final OpenemsError EDGE_NO_COMPONENT_WITH_ID
      • EDGE_MULTIPLE_COMPONENTS_WITH_ID

        public static final OpenemsError EDGE_MULTIPLE_COMPONENTS_WITH_ID
      • EDGE_UNABLE_TO_APPLY_CONFIG

        public static final OpenemsError EDGE_UNABLE_TO_APPLY_CONFIG
      • EDGE_UNABLE_TO_CREATE_CONFIG

        public static final OpenemsError EDGE_UNABLE_TO_CREATE_CONFIG
      • EDGE_UNABLE_TO_DELETE_CONFIG

        public static final OpenemsError EDGE_UNABLE_TO_DELETE_CONFIG
      • EDGE_CHANNEL_NO_OPTION

        public static final OpenemsError EDGE_CHANNEL_NO_OPTION
      • BACKEND_EDGE_NOT_CONNECTED

        public static final OpenemsError BACKEND_EDGE_NOT_CONNECTED
      • BACKEND_UI_TOKEN_MISSING

        public static final OpenemsError BACKEND_UI_TOKEN_MISSING
      • BACKEND_NO_UI_WITH_TOKEN

        public static final OpenemsError BACKEND_NO_UI_WITH_TOKEN
      • JSONRPC_ID_NOT_UNIQUE

        public static final OpenemsError JSONRPC_ID_NOT_UNIQUE
      • JSONRPC_UNHANDLED_METHOD

        public static final OpenemsError JSONRPC_UNHANDLED_METHOD
      • JSONRPC_INVALID_MESSAGE

        public static final OpenemsError JSONRPC_INVALID_MESSAGE
      • JSONRPC_RESPONSE_WITHOUT_REQUEST

        public static final OpenemsError JSONRPC_RESPONSE_WITHOUT_REQUEST
      • JSON_HAS_NO_MEMBER

        public static final OpenemsError JSON_HAS_NO_MEMBER
      • JSON_NO_INTEGER

        public static final OpenemsError JSON_NO_INTEGER
      • JSON_NO_INTEGER_MEMBER

        public static final OpenemsError JSON_NO_INTEGER_MEMBER
      • JSON_NO_OBJECT

        public static final OpenemsError JSON_NO_OBJECT
      • JSON_NO_OBJECT_MEMBER

        public static final OpenemsError JSON_NO_OBJECT_MEMBER
      • JSON_NO_PRIMITIVE

        public static final OpenemsError JSON_NO_PRIMITIVE
      • JSON_NO_PRIMITIVE_MEMBER

        public static final OpenemsError JSON_NO_PRIMITIVE_MEMBER
      • JSON_NO_ARRAY

        public static final OpenemsError JSON_NO_ARRAY
      • JSON_NO_ARRAY_MEMBER

        public static final OpenemsError JSON_NO_ARRAY_MEMBER
      • JSON_NO_DATE_MEMBER

        public static final OpenemsError JSON_NO_DATE_MEMBER
      • JSON_NO_STRING

        public static final OpenemsError JSON_NO_STRING
      • JSON_NO_STRING_MEMBER

        public static final OpenemsError JSON_NO_STRING_MEMBER
      • JSON_NO_BOOLEAN

        public static final OpenemsError JSON_NO_BOOLEAN
      • JSON_NO_BOOLEAN_MEMBER

        public static final OpenemsError JSON_NO_BOOLEAN_MEMBER
      • JSON_NO_NUMBER

        public static final OpenemsError JSON_NO_NUMBER
      • JSON_NO_NUMBER_MEMBER

        public static final OpenemsError JSON_NO_NUMBER_MEMBER
      • JSON_PARSE_ELEMENT_FAILED

        public static final OpenemsError JSON_PARSE_ELEMENT_FAILED
      • JSON_PARSE_FAILED

        public static final OpenemsError JSON_PARSE_FAILED
      • JSON_NO_FLOAT_MEMBER

        public static final OpenemsError JSON_NO_FLOAT_MEMBER
      • JSON_NO_ENUM_MEMBER

        public static final OpenemsError JSON_NO_ENUM_MEMBER
      • JSON_NO_INET4ADDRESS

        public static final OpenemsError JSON_NO_INET4ADDRESS
      • JSON_NO_ENUM

        public static final OpenemsError JSON_NO_ENUM
      • JSON_NO_FLOAT

        public static final OpenemsError JSON_NO_FLOAT
      • XML_HAS_NO_MEMBER

        public static final OpenemsError XML_HAS_NO_MEMBER
      • XML_NO_STRING_MEMBER

        public static final OpenemsError XML_NO_STRING_MEMBER
    • Method Detail

      • values

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

        public static OpenemsError 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
      • fromCode

        public static OpenemsError fromCode​(int code)
                                     throws OpenemsException
        Gets an OpenEMS-Error from its code.
        Parameters:
        code - the error code
        Returns:
        the OpenEMS-Error
        Throws:
        OpenemsException - if no standard exception with this error code exists.
      • getCode

        public int getCode()
      • getRawMessage

        public java.lang.String getRawMessage()
      • getMessage

        public java.lang.String getMessage​(java.lang.Object... params)