Class EntitlementException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.identity.entitlement.EntitlementException
All Implemented Interfaces:
Serializable

@SupportedAll public class EntitlementException extends Exception
Entitlement related exception.
See Also:
  • Field Details

    • RES_BUNDLE_NAME

      public static final String RES_BUNDLE_NAME
      See Also:
    • UNABLE_TO_CREATE_POLICY

      public static final int UNABLE_TO_CREATE_POLICY
      See Also:
    • INVALID_PRIVILEGE_CLASS

      public static final int INVALID_PRIVILEGE_CLASS
      See Also:
    • EMPTY_PRIVILEGE_NAME

      public static final int EMPTY_PRIVILEGE_NAME
      See Also:
    • NULL_ENTITLEMENT

      public static final int NULL_ENTITLEMENT
      See Also:
    • UNSUPPORTED_OPERATION

      public static final int UNSUPPORTED_OPERATION
      See Also:
    • INVALID_APPLICATION_CLASS

      public static final int INVALID_APPLICATION_CLASS
      See Also:
    • INVALID_XML

      public static final int INVALID_XML
      See Also:
    • INVALID_WSDL_LOCATION

      public static final int INVALID_WSDL_LOCATION
      See Also:
    • MISSING_PRIVILEGE_JSON

      public static final int MISSING_PRIVILEGE_JSON
      See Also:
    • SESSION_HAS_EXPIRED

      public static final int SESSION_HAS_EXPIRED
      See Also:
    • INVALID_JSON

      public static final int INVALID_JSON
      See Also:
    • MISSING_PRIVILEGE_NAME

      public static final int MISSING_PRIVILEGE_NAME
      See Also:
    • POLICY_NAME_MISMATCH

      public static final int POLICY_NAME_MISMATCH
      See Also:
    • RESOURCE_LIST_EMPTY

      public static final int RESOURCE_LIST_EMPTY
      See Also:
    • RESOURCE_TYPE_ID_MISMATCH

      public static final int RESOURCE_TYPE_ID_MISMATCH
      See Also:
    • UNSUPPORTED_SUBJECT_INDEX

      public static final int UNSUPPORTED_SUBJECT_INDEX
      See Also:
    • UNABLE_TO_CREATE_SUBJECT_INDEX

      public static final int UNABLE_TO_CREATE_SUBJECT_INDEX
      See Also:
    • UNKNOWN_IDENTITY

      public static final int UNKNOWN_IDENTITY
      See Also:
    • UNABLE_TO_QUERY_POLICY_INVALID_UID

      public static final int UNABLE_TO_QUERY_POLICY_INVALID_UID
      See Also:
    • UNABLE_TO_SERIALIZE_OBJECT

      public static final int UNABLE_TO_SERIALIZE_OBJECT
      See Also:
    • NO_SUCH_POLICY

      public static final int NO_SUCH_POLICY
      See Also:
    • UNABLE_SEARCH_PRIVILEGES

      public static final int UNABLE_SEARCH_PRIVILEGES
      See Also:
    • UNABLE_SEARCH_PRIVILEGES_MISSING_TOKEN

      public static final int UNABLE_SEARCH_PRIVILEGES_MISSING_TOKEN
      See Also:
    • POLICY_ALREADY_EXISTS

      public static final int POLICY_ALREADY_EXISTS
      See Also:
    • RESOURCE_TYPE_ALREADY_EXISTS

      public static final int RESOURCE_TYPE_ALREADY_EXISTS
      See Also:
    • NO_SUCH_RESOURCE_TYPE

      public static final int NO_SUCH_RESOURCE_TYPE
      See Also:
    • RESOURCE_TYPE_IN_USE

      public static final int RESOURCE_TYPE_IN_USE
      See Also:
    • RESOURCE_TYPE_RETRIEVAL_ERROR

      public static final int RESOURCE_TYPE_RETRIEVAL_ERROR
      See Also:
    • APPLICATION_ALREADY_EXISTS

      public static final int APPLICATION_ALREADY_EXISTS
      See Also:
    • APPLICATION_NAME_MISMATCH

      public static final int APPLICATION_NAME_MISMATCH
      See Also:
    • REMOVE_APPLICATION_FAIL

      public static final int REMOVE_APPLICATION_FAIL
      See Also:
    • MODIFY_APPLICATION_FAIL

      public static final int MODIFY_APPLICATION_FAIL
      See Also:
    • REMOVE_RESOURCE_TYPE_FAIL

      public static final int REMOVE_RESOURCE_TYPE_FAIL
      See Also:
    • MODIFY_RESOURCE_TYPE_FAIL

      public static final int MODIFY_RESOURCE_TYPE_FAIL
      See Also:
    • RESOURCE_TYPE_REFERENCED

      public static final int RESOURCE_TYPE_REFERENCED
      See Also:
    • POLICY_DEFINES_INVALID_RESOURCE_TYPE

      public static final int POLICY_DEFINES_INVALID_RESOURCE_TYPE
      See Also:
    • MISSING_RESOURCE_TYPE

      public static final int MISSING_RESOURCE_TYPE
      See Also:
    • INVALID_RESOURCE_TYPE

      public static final int INVALID_RESOURCE_TYPE
      See Also:
    • NO_RESOURCE_TYPE_EXPECTED

      public static final int NO_RESOURCE_TYPE_EXPECTED
      See Also:
    • MISSING_APPLICATION_NAME

      public static final int MISSING_APPLICATION_NAME
      See Also:
    • APP_RETRIEVAL_ERROR

      public static final int APP_RETRIEVAL_ERROR
      See Also:
    • MISSING_RESOURCE_TYPE_NAME

      public static final int MISSING_RESOURCE_TYPE_NAME
      See Also:
    • NO_SUCH_REFERRAL_PRIVILEGE

      public static final int NO_SUCH_REFERRAL_PRIVILEGE
      See Also:
    • NO_RESOURCE_TYPE_MATCH_FOUND

      public static final int NO_RESOURCE_TYPE_MATCH_FOUND
      See Also:
    • INCONSISTENT_WILDCARDS

      public static final int INCONSISTENT_WILDCARDS
      See Also:
    • INVALID_PORT

      public static final int INVALID_PORT
      See Also:
    • MALFORMED_URL

      public static final int MALFORMED_URL
      See Also:
    • INVALID_RESOURCE

      public static final int INVALID_RESOURCE
      See Also:
    • INVALID_ENTITLEMENT_SUBJECT_CLASS

      public static final int INVALID_ENTITLEMENT_SUBJECT_CLASS
      See Also:
    • INVALID_CLASS

      public static final int INVALID_CLASS
      See Also:
    • INVALID_APP_TYPE

      public static final int INVALID_APP_TYPE
      See Also:
    • INVALID_APP_REALM

      public static final int INVALID_APP_REALM
      See Also:
    • APPLICATION_TYPE_NOT_FOUND

      public static final int APPLICATION_TYPE_NOT_FOUND
      See Also:
    • NO_SUCH_APPLICATION

      public static final int NO_SUCH_APPLICATION
      See Also:
    • NOT_FOUND

      public static final int NOT_FOUND
      See Also:
    • PERMISSION_DENIED

      public static final int PERMISSION_DENIED
      See Also:
    • SUBJECT_REQUIRED

      public static final int SUBJECT_REQUIRED
      See Also:
    • INVALID_SEARCH_FILTER

      public static final int INVALID_SEARCH_FILTER
      See Also:
    • UNKNOWN_POLICY_CLASS

      public static final int UNKNOWN_POLICY_CLASS
      See Also:
    • UNKNOWN_RESOURCE_ATTRIBUTE_CLASS

      public static final int UNKNOWN_RESOURCE_ATTRIBUTE_CLASS
      See Also:
    • POLICY_CLASS_CAST_EXCEPTION

      public static final int POLICY_CLASS_CAST_EXCEPTION
      See Also:
    • POLICY_CLASS_NOT_INSTANTIABLE

      public static final int POLICY_CLASS_NOT_INSTANTIABLE
      See Also:
    • POLICY_CLASS_NOT_ACCESSIBLE

      public static final int POLICY_CLASS_NOT_ACCESSIBLE
      See Also:
    • INVALID_PROPERTY_VALUE

      public static final int INVALID_PROPERTY_VALUE
      See Also:
    • INVALID_VALUE

      public static final int INVALID_VALUE
      See Also:
    • START_DATE_AFTER_END_DATE

      public static final int START_DATE_AFTER_END_DATE
      See Also:
    • APP_NOT_DELETED_POLICIES_EXIST

      public static final int APP_NOT_DELETED_POLICIES_EXIST
      See Also:
    • INVALID_PROPERTY_VALUE_UNKNOWN_VALUE

      public static final int INVALID_PROPERTY_VALUE_UNKNOWN_VALUE
      See Also:
    • IP_CONDITION_CONFIGURATION_REQUIRED

      public static final int IP_CONDITION_CONFIGURATION_REQUIRED
      See Also:
    • INACTIVE_SUBJECT

      public static final int INACTIVE_SUBJECT
      See Also:
    • MISSING_RESOURCE

      public static final int MISSING_RESOURCE
      See Also:
    • JSON_PARSE_ERROR

      public static final int JSON_PARSE_ERROR
      See Also:
    • AUTHENTICATION_ERROR

      public static final int AUTHENTICATION_ERROR
      See Also:
    • CLIENT_IP_EMPTY

      public static final int CLIENT_IP_EMPTY
      See Also:
    • RESOURCE_ENV_NOT_KNOWN

      public static final int RESOURCE_ENV_NOT_KNOWN
      See Also:
    • APPLICATION_SEARCH_FAILED

      public static final int APPLICATION_SEARCH_FAILED
      See Also:
    • INVALID_QUERY_FILTER

      public static final int INVALID_QUERY_FILTER
      See Also:
    • INVALID_QUERY_ID

      public static final int INVALID_QUERY_ID
      See Also:
    • QUERY_ID_MISSING_UID

      public static final int QUERY_ID_MISSING_UID
      See Also:
    • CONDITION_EVALUATION_FAILED

      public static final int CONDITION_EVALUATION_FAILED
      See Also:
    • UNABLE_TO_RETRIEVE_SUBJECT_ATTRIBUTE

      public static final int UNABLE_TO_RETRIEVE_SUBJECT_ATTRIBUTE
      See Also:
    • INVALID_OAUTH2_SCOPE

      public static final int INVALID_OAUTH2_SCOPE
      See Also:
    • AUTH_LEVEL_NOT_INTEGER

      public static final int AUTH_LEVEL_NOT_INTEGER
      See Also:
    • PROPERTY_VALUE_NOT_DEFINED

      public static final int PROPERTY_VALUE_NOT_DEFINED
      See Also:
    • AUTH_LEVEL_NOT_INT_OR_SET

      public static final int AUTH_LEVEL_NOT_INT_OR_SET
      See Also:
    • AUTH_SCHEME_NOT_FOUND

      public static final int AUTH_SCHEME_NOT_FOUND
      See Also:
    • INVALID_ADMIN

      public static final int INVALID_ADMIN
      See Also:
    • AM_ID_SUBJECT_MEMBERSHIP_EVALUATION_ERROR

      public static final int AM_ID_SUBJECT_MEMBERSHIP_EVALUATION_ERROR
      See Also:
    • UNABLE_TO_PARSE_SSOTOKEN_AUTHINSTANT

      public static final int UNABLE_TO_PARSE_SSOTOKEN_AUTHINSTANT
      See Also:
    • AT_LEAST_ONE_OF_TIME_PROPS_SHOULD_BE_DEFINED

      public static final int AT_LEAST_ONE_OF_TIME_PROPS_SHOULD_BE_DEFINED
      See Also:
    • PAIR_PROPERTY_NOT_DEFINED

      public static final int PAIR_PROPERTY_NOT_DEFINED
      See Also:
    • END_IP_BEFORE_START_IP

      public static final int END_IP_BEFORE_START_IP
      See Also:
    • INVALID_SCRIPT_ID

      public static final int INVALID_SCRIPT_ID
      See Also:
    • INVALID_EXPIRATION_DATE

      public static final int INVALID_EXPIRATION_DATE
      See Also:
    • MISSING_CLIENT_ID

      public static final int MISSING_CLIENT_ID
      See Also:
    • PROPERTY_IS_NOT_AN_INTEGER

      public static final int PROPERTY_IS_NOT_AN_INTEGER
      See Also:
    • PROPERTY_IS_NOT_A_SET

      public static final int PROPERTY_IS_NOT_A_SET
      See Also:
    • PROPERTY_CONTAINS_BLANK_VALUE

      public static final int PROPERTY_CONTAINS_BLANK_VALUE
      See Also:
    • TRANSACTION_STORAGE_FAILURE

      public static final int TRANSACTION_STORAGE_FAILURE
      See Also:
    • TRANSACTION_STORE_READ_FAILURE

      public static final int TRANSACTION_STORE_READ_FAILURE
      See Also:
    • INTERNAL_ERROR

      public static final int INTERNAL_ERROR
      See Also:
    • REALM_NOT_FOUND

      public static final int REALM_NOT_FOUND
      See Also:
    • UNABLE_TO_READ_REALM_ATTRIBUTES

      public static final int UNABLE_TO_READ_REALM_ATTRIBUTES
      See Also:
    • POLICY_RESOURCE_TYPE_NOT_DEFINED

      public static final int POLICY_RESOURCE_TYPE_NOT_DEFINED
      See Also:
  • Constructor Details

    • EntitlementException

      public EntitlementException(int errorCode)
      Creates an entitlement exception.
      Parameters:
      errorCode - Error code.
    • EntitlementException

      public EntitlementException(int errorCode, Object... params)
      Creates an entitlement exception.
      Parameters:
      errorCode - Error code.
      params - Parameters for formatting the message string.
    • EntitlementException

      public EntitlementException(int errorCode, Throwable cause)
      Creates an entitlement exception.
      Parameters:
      errorCode - Error code.
      cause - Root cause.
    • EntitlementException

      public EntitlementException(int errorCode, Object[] params, Throwable cause)
      Creates an entitlement exception.
      Parameters:
      errorCode - Error code.
      params - Parameters for formatting the message string.
      cause - Root cause.
    • EntitlementException

      public EntitlementException(int errorCode, Throwable cause, Object... params)
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Returns error code.
      Returns:
      error code.
    • getMessage

      public String getMessage()
      Returns exception message.
      Overrides:
      getMessage in class Throwable
      Returns:
      exception message.
    • getLocalizedMessage

      public String getLocalizedMessage()
      Returns localized exception message.
      Overrides:
      getLocalizedMessage in class Throwable
      Returns:
      localized exception message.
    • getLocalizedMessage

      public String getLocalizedMessage(Locale locale)
      Returns localized exception message using the errorCode as key.
      Parameters:
      locale - Locale of the message.
      Returns:
      localized exception message.