| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sun.identity.policy.ChainedException
                    |
                    +--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_COLLECTIONThe constant variable specifies the exception is with respect to constraint collection. | 
| static int | ORGANIZATIONThe constant variable specifies the exception is with respect to organization, sub-organization or the container. | 
| static int | POLICYThe constant variable specifies the exception is with respect to policy. | 
| static int | REFERRAL_COLLECTIONThe constant variable specifies the exception is with respect to referral collection. | 
| static int | REFERRAL_TYPEThe constant variable specifies the exception is with respect to Referral Type | 
| static int | RESPONSE_PROVIDER_COLLECTIONThe constant variable specifies the exception is with respect to response provider collection. | 
| static int | RULEThe constant variable specifies the exception is with respect to rule. | 
| static int | SERVICEThe constant variable specifies the exception is with respect to services. | 
| static int | SUBJECT_TYPEThe constant variable specifies the exception is with respect to Subject Type | 
| static int | USER_COLLECTIONThe constant variable specifies the exception is with respect to user collection. | 
| Constructor Summary | |
| PolicyException(java.lang.String message)Constructs an instance of the PolicyExceptionclass. | |
| PolicyException(java.lang.String rbName,
                java.lang.String errorCode,
                java.lang.Object[] args,
                java.lang.Throwable nestedException)Constructs an instance of PolicyExceptionto 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 PolicyExceptionclass. | |
| PolicyException(java.lang.Throwable nestedException)Constructs an instance of the PolicyExceptionclass. | |
| Method Summary | |
|  java.lang.String | getCompleteL10NMessage(java.util.Locale) | 
|  java.lang.String | getErrorCode() | 
|  java.lang.String | getL10NMessage(java.util.Locale) | 
|  java.lang.String | getMessage() | 
|  java.lang.Object[] | getMessageArgs() | 
|  java.lang.Throwable | getNestedException() | 
|  java.lang.String | getResourceBundleName() | 
|  void | printStackTrace() | 
|  void | printStackTrace(java.io.PrintStream) | 
|  void | printStackTrace(java.io.PrintWriter) | 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getLocalizedMessage, toString | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| 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 RESPONSE_PROVIDER_COLLECTION
public static final int REFERRAL_COLLECTION
public static final int REFERRAL_TYPE
public static final int SUBJECT_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 exception
public 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  exception
public 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 error code
 for correctly locating the error message. The default
 getMessage() will always return English messages only. This
 is in consistent with current JRErbName - Resource Bundle 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| Method Detail | 
public java.lang.String getL10NMessage(java.util.Locale)
getL10NMessage in interface com.sun.identity.common.L10NMessagepublic java.lang.String getCompleteL10NMessage(java.util.Locale)
public java.lang.String getResourceBundleName()
getResourceBundleName in interface com.sun.identity.common.L10NMessagepublic java.lang.String getErrorCode()
getErrorCode in interface com.sun.identity.common.L10NMessagepublic java.lang.Object[] getMessageArgs()
getMessageArgs in interface com.sun.identity.common.L10NMessagepublic java.lang.String getMessage()
getMessage in interface com.sun.identity.common.L10NMessagegetMessage in class java.lang.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream)
printStackTrace in class java.lang.Throwablepublic java.lang.Throwable getNestedException()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||