Enum Errors

    • Enum Constant Detail

      • COOKIE_NOTPRESENT_ERROR

        public static final Errors COOKIE_NOTPRESENT_ERROR
        Empty Cookie error
      • TOKEN_NOTPRESENT_ERROR

        public static final Errors TOKEN_NOTPRESENT_ERROR
        Empty Cookie error
      • IO_EXCEPTION

        public static final Errors IO_EXCEPTION
        IO Exception
      • CANNOT_CONNECT_TO_AUTH_SERVICE

        public static final Errors CANNOT_CONNECT_TO_AUTH_SERVICE
        Cannot connect to auth service
      • RESPONSE_PARSE_ERROR

        public static final Errors RESPONSE_PARSE_ERROR
        RESPONSE_PARSE_ERROR
      • ACESSTOKEN_EXCEPTION

        public static final Errors ACESSTOKEN_EXCEPTION
      • STATE_EXCEPTION

        public static final Errors STATE_EXCEPTION
      • REST_EXCEPTION

        public static final Errors REST_EXCEPTION
      • INVALID_TOKEN

        public static final Errors INVALID_TOKEN
      • EXCEPTION

        public static final Errors EXCEPTION
      • ALLOWED_URL_EXCEPTION

        public static final Errors ALLOWED_URL_EXCEPTION
      • STATE_NULL_EXCEPTION

        public static final Errors STATE_NULL_EXCEPTION
      • STATE_NOT_UUID_EXCEPTION

        public static final Errors STATE_NOT_UUID_EXCEPTION
      • UNSUPPORTED_ENCODING_EXCEPTION

        public static final Errors UNSUPPORTED_ENCODING_EXCEPTION
      • JWT_SIGN_EXCEPTION

        public static final Errors JWT_SIGN_EXCEPTION
      • JSON_PROCESSING_EXCEPTION

        public static final Errors JSON_PROCESSING_EXCEPTION
    • Method Detail

      • values

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

        public static Errors valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getErrorCode

        public String getErrorCode()
        Function to get error code
        Returns:
        errorCode
      • getErrorMessage

        public String getErrorMessage()
        Function to get the error message
        Returns:
        errorMessager