Package com.sun.identity.policy
Class PolicyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.identity.policy.PolicyException
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage
,Serializable
- Direct Known Subclasses:
InvalidFormatException
,InvalidNameException
,LimitExceededException
,NameAlreadyExistsException
,NameNotFoundException
,NoPermissionException
,ObjectInUseException
,PolicyEvaluationException
The class
PolicyException
is the basic exception for the
the policy component. All other exceptions in this package are derived
from this exception.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The constant variable specifies the exception is with respect to constraint collection.static final int
The constant variable specifies the exception is with respect to organization, sub-organization or the container.static final int
The constant variable specifies the exception is with respect to policy.static final int
The constant variable specifies the exception is with respect to referral collection.static final int
The constant variable specifies the exception is with respect to Referral Typestatic final int
The constant variable specifies the exception is with respect to response provider collection.static final int
The constant variable specifies the exception is with respect to rule.static final int
The constant variable specifies the exception is with respect to services.static final int
The constant variable specifies the exception is with respect to Subject Typestatic final int
The constant variable specifies the exception is with respect to user collection. -
Constructor Summary
ConstructorDescriptionPolicyException
(String message) Constructs an instance of thePolicyException
class.PolicyException
(String rbName, String errorCode, Object[] args, Throwable nestedException) Constructs an instance ofPolicyException
to pass the localized error message At this level, the locale of the caller is not known and it is not possible to throw localized error message at this level.PolicyException
(String message, Throwable nestedException) Constructs an instance of thePolicyException
class.PolicyException
(Throwable nestedException) Constructs an instance of thePolicyException
class. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
POLICY
public static final int POLICYThe constant variable specifies the exception is with respect to policy.- See Also:
-
RULE
public static final int RULEThe constant variable specifies the exception is with respect to rule.- See Also:
-
SERVICE
public static final int SERVICEThe constant variable specifies the exception is with respect to services.- See Also:
-
ORGANIZATION
public static final int ORGANIZATIONThe constant variable specifies the exception is with respect to organization, sub-organization or the container.- See Also:
-
USER_COLLECTION
public static final int USER_COLLECTIONThe constant variable specifies the exception is with respect to user collection.- See Also:
-
CONDITION_COLLECTION
public static final int CONDITION_COLLECTIONThe constant variable specifies the exception is with respect to constraint collection.- See Also:
-
RESPONSE_PROVIDER_COLLECTION
public static final int RESPONSE_PROVIDER_COLLECTIONThe constant variable specifies the exception is with respect to response provider collection.- See Also:
-
REFERRAL_COLLECTION
public static final int REFERRAL_COLLECTIONThe constant variable specifies the exception is with respect to referral collection.- See Also:
-
REFERRAL_TYPE
public static final int REFERRAL_TYPEThe constant variable specifies the exception is with respect to Referral Type- See Also:
-
SUBJECT_TYPE
public static final int SUBJECT_TYPEThe constant variable specifies the exception is with respect to Subject Type- See Also:
-
-
Constructor Details
-
PolicyException
Constructs an instance of thePolicyException
class.- Parameters:
message
- The message provided by the object that is throwing the exception.
-
PolicyException
Constructs an instance of thePolicyException
class.- Parameters:
nestedException
- the exception caught by the code block creating this exception
-
PolicyException
Constructs an instance of thePolicyException
class.- Parameters:
message
- message of this exceptionnestedException
- the exception caught by the code block creating this exception
-
PolicyException
Constructs an instance ofPolicyException
to pass the localized error message At this level, the locale of the caller is not known and it is not possible to throw localized error message at this level. Instead this constructor provides Resource Bundle name and error code for correctly locating the error message. The defaultgetMessage()
will always return English messages only. This is in consistent with current JRE- Parameters:
rbName
- Resource Bundle Name to be used for getting localized error message.errorCode
- Key to resource bundle. You can useResourceBundle rb = ResourceBunde.getBundle (rbName,locale); String localizedStr = rb.getString(errorCode);
args
- arguments to message. If it is not present pass the as nullnestedException
- The root cause of this error
-