Package com.sun.identity.policy.remote
Class PolicyEvaluationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.identity.policy.PolicyException
com.sun.identity.policy.remote.PolicyEvaluationException
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage
,Serializable
The class
PolicyEvaluationException
is the exception
for the error happening in policy request XML parsing and policy
request evaluation.- See Also:
-
Field Summary
Fields inherited from class com.sun.identity.policy.PolicyException
CONDITION_COLLECTION, ORGANIZATION, POLICY, REFERRAL_COLLECTION, REFERRAL_TYPE, RESPONSE_PROVIDER_COLLECTION, RULE, SERVICE, SUBJECT_TYPE, USER_COLLECTION
-
Constructor Summary
ConstructorDescriptionPolicyEvaluationException
(String message) Constructs an instance of thePolicyEvaluationException
.PolicyEvaluationException
(String message, String reqId) Constructs an instance of thePolicyEvaluationException
class.PolicyEvaluationException
(String rbName, String errorCode, Object[] args, Throwable nestedException) Constructs an instance ofPolicyEvaluationException
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.PolicyEvaluationException
(String rbName, String errorCode, Object[] args, Throwable nestedException, String reqId) Constructs an instance ofPolicyEvaluationException
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.PolicyEvaluationException
(String message, Throwable nestedException) Constructs an instance of thePolicyEvaluationException
class.PolicyEvaluationException
(String message, Throwable nestedException, String reqId) Constructs an instance of thePolicyEvaluationException
class.PolicyEvaluationException
(Throwable nestedException) Constructs an instance of thePolicyEvaluationException
PolicyEvaluationException
(Throwable nestedException, String reqId) Constructs an instance of thePolicyEvaluationException
class. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
PolicyEvaluationException
Constructs an instance of thePolicyEvaluationException
.- Parameters:
message
- The message provided by the object that is throwing the exception.
-
PolicyEvaluationException
Constructs an instance of thePolicyEvaluationException
- Parameters:
nestedException
- the exception caught by the code block creating this.
-
PolicyEvaluationException
Constructs an instance of thePolicyEvaluationException
class.- Parameters:
nestedException
- the exception caught by the code block creating thisreqId
- The id of the policy request exception.
-
PolicyEvaluationException
public PolicyEvaluationException(String rbName, String errorCode, Object[] args, Throwable nestedException, String reqId) Constructs an instance ofPolicyEvaluationException
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 exception caught by the code block creating thisreqId
- The id of the policy request exception.
-
PolicyEvaluationException
public PolicyEvaluationException(String rbName, String errorCode, Object[] args, Throwable nestedException) Constructs an instance ofPolicyEvaluationException
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 exception caught by the code block creating this
-
PolicyEvaluationException
Constructs an instance of thePolicyEvaluationException
class.- Parameters:
message
- The message provided by the object that is throwing the exception.reqId
- The id of the policy request exception.
-
PolicyEvaluationException
Constructs an instance of thePolicyEvaluationException
class.- Parameters:
message
- message of this exceptionnestedException
- the exception caught by the code block creating this exception.
-
PolicyEvaluationException
Constructs an instance of thePolicyEvaluationException
class.- Parameters:
message
- message of this exceptionnestedException
- the exception caught by the code block creating this exceptionreqId
- The id of the policy request
-
-
Method Details
-
getRequestId
Returns the request Id.- Returns:
- the request Id.
-