|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sun.identity.policy.PolicyException
The class PolicyException
is the basic exception for the
the policy component. All other exceptions in this package are derived
from this exception.
Field Summary | |
static int |
CONDITION_COLLECTION
The constant variable specifies the exception is with respect to constraint collection. |
static int |
ORGANIZATION
The constant variable specifies the exception is with respect to organization, sub-organization or the conatiner. |
static int |
POLICY
The constant variable specifies the exception is with respect to policy. |
static int |
REFERRAL_COLLECTION
The constant variable specifies the exception is with respect to referral collection. |
static int |
REFERRAL_TYPE
The constant variable specifies the exception is with respect to ReferralType |
static int |
RULE
The constant variable specifies the exception is with respect to rule. |
static int |
SERVICE
The constant variable specifies the exeception is with respect to services. |
static int |
USER_COLLECTION
The constant variable specifies the exception is with respect to user collection. |
Constructor Summary | |
PolicyException(java.lang.String message)
Constructs an instance of the PolicyException class. |
|
PolicyException(java.lang.String rbName,
java.lang.String errorCode,
java.lang.Object[] args,
java.lang.Throwable nestedException)
Constructs an instance of PolicyException 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(java.lang.String message,
java.lang.Throwable nestedException)
Constructs an instance of the PolicyException class. |
|
PolicyException(java.lang.Throwable nestedException)
Constructs an instance of the PolicyException class. |
Field Detail |
public static final int POLICY
public static final int RULE
public static final int SERVICE
public static final int ORGANIZATION
public static final int USER_COLLECTION
public static final int CONDITION_COLLECTION
public static final int REFERRAL_COLLECTION
public static final int REFERRAL_TYPE
Constructor Detail |
public PolicyException(java.lang.String message)
PolicyException
class.message
- The message provided by the object that is throwing the
exception.public PolicyException(java.lang.Throwable nestedException)
PolicyException
class.nestedException
- the exception caught by the code block creating
this exceptionpublic PolicyException(java.lang.String message, java.lang.Throwable nestedException)
PolicyException
class.message
- message of this exceptionnestedException
- the exception caught by the code block creating
this exceptionpublic PolicyException(java.lang.String rbName, java.lang.String errorCode, java.lang.Object[] args, java.lang.Throwable nestedException)
PolicyException
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 errorCode
for correctly locating the error messsage. The default getMessage()
will always return English messages only. This is in consistent with
current JRErbName
- - ResourceBundle Name to be used for getting
localized error message.errorCode
- - Key to resource bundle. You can use
ResourceBundle 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |