com.hyperion.css
Class CSSInvalidPrincipalException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.hyperion.css.CSSException
              extended bycom.hyperion.css.CSSInvalidPrincipalException
All Implemented Interfaces:
CSSAppExceptionIF, java.io.Serializable

public class CSSInvalidPrincipalException
extends CSSException

This exception, if thrown, implies that the principal specified does not exist, but existed at some time. This exception is likely to occur if the identity is passed in but no user can be found with that identity. The user might have been deleted.

See Also:
CSSAppExceptionIF.INVALID_PRINCIPAL_EXCEPTION, Serialized Form

Field Summary
protected  long errorCode
           This is the default errorCode for this exception.
 
Fields inherited from class com.hyperion.css.CSSException
area_Code, error_Code, errorArguments, errorMessage, hasErrorArguments, hasRootCause, locale, logLevel, messageBundleName, providerName, rootCausesList, rootException, rootMessagesList
 
Fields inherited from interface com.hyperion.css.CSSAppExceptionIF
ACCOUNT_DISABLED, ACCOUNT_INACTIVE, ACCOUNT_LOCKED, ACCT_LOCKED, AUTHENTICATION_EXCEPTION, AUTHORIZATION_EXCEPTION, BAD_PASSWORD, CIRCULAR_DEPENDENCY_EXCEPTION, COMMUNICATION_EXCEPTION, CONFIGURATION_EXCEPTION, DIRECTORY_UNTRUSTED_EXCEPTION, ENTITY_ALREADY_EXISTS_EXCEPTION, GENERAL_EXCEPTION, GROUP_NOT_PROVISIONED_EXCEPTION, ILLEGAL_ARGUMENT_EXCEPTION, ILLEGAL_PASSWORD, INVALID_DELEGATED_LIST_EXCEPTION, INVALID_GROUP_EXCEPTION, INVALID_IDENTITY_EXCEPTION, INVALID_PRINCIPAL_EXCEPTION, INVALID_ROLE_EXCEPTION, INVALID_USER_EXCEPTION, IP_ACCOUNT_LOCKED, METHOD_NOT_IMPELEMENTED_EXCEPTION, NO_PROVIDER_EXCEPTION, NULL_PASSWORD, OPERATION_NOT_SUPPORTED_EXCEPTION, PASSWORD_ALPHA_NUMERIC_VIOLATION, PASSWORD_CHANGE_REQUIRED, PASSWORD_EXPIRED, PASSWORD_EXPIRY_WARNING, PASSWORD_GRACE_LOGIN_MODE, PASSWORD_HAS_EXPIRED, PASSWORD_IN_HISTORY_VIOLATION, PASSWORD_MAX_RPT_CHARS_VIOLATION, PASSWORD_MIN_AGE_SELFMODIFY, PASSWORD_MIN_ALPHABETIC_CHARS_VIOLATION, PASSWORD_MIN_LENGTH_VIOLATION, PASSWORD_MIN_LOWERCASE_VIOLATION, PASSWORD_MIN_SPECIAL_CHARS_VIOLATION, PASSWORD_MIN_UPPERCASE_VIOLATION, PASSWORD_MUST_CHANGE, PASSWORD_POLICY_ERROR, REGISTRATION_EXCEPTION, ROLLBACK_EXCEPTION, SECURITY_AGENT_NOT_CONFIGURED, TOKEN_CANNOT_BE_DECRYPTED, TOKEN_CANNOT_BE_ENCRYPTED, TOKEN_NOT_ACCEPTED_EXCEPTION, TOKEN_NOT_AVAILABLE_EXCEPTION, TWO_SECURITY_AGENTS_SPECIFIED, USER_NOT_FOUND_EXCEPTION, USER_NOT_PROVISIONED_EXCEPTION
 
Constructor Summary
CSSInvalidPrincipalException()
          Deprecated.  
CSSInvalidPrincipalException(long areaCode, long errorCode)
          Constructs a new exception with the specified error code.
CSSInvalidPrincipalException(long areaCode, long errorCode, int logLevel)
          Constructs a new exception with the specified error code.
CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.String[] errorArguments)
          Constructs a new exception with the specified error code.
CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.String[] errorArguments, int logLevel)
          Constructs a new exception with the specified error code.
CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.String[] errorArguments, java.lang.Throwable rootException)
          Constructs a new exception with the specified error code.
CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.String[] errorArguments, java.lang.Throwable rootException, int logLevel)
          Constructs a new exception with the specified error code.
CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.Throwable rootException)
          Constructs a new exception with the specified error code.
CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.Throwable rootException, int logLevel)
          Constructs a new exception with the specified error code.
CSSInvalidPrincipalException(java.lang.String explanation)
          Deprecated.  
CSSInvalidPrincipalException(java.lang.String explanation, long errorCode)
          Deprecated.  
CSSInvalidPrincipalException(java.lang.String explanation, java.lang.Throwable rootException)
          Deprecated.  
CSSInvalidPrincipalException(java.lang.Throwable rootException)
          Deprecated.  
 
Method Summary
 long getErrorCode()
          Deprecated.  
 void setErrorCode(long errorCode)
          Deprecated.  
 
Methods inherited from class com.hyperion.css.CSSException
getCSSAreaCode, getCSSErrorCode, getMessage, getMessage, getMessage, getProvider, getRootCause, getRootCauses, getRootMessages, printStackTrace, printStackTrace, printStackTrace, setLocale, setRootCause, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorCode

protected long errorCode

This is the default errorCode for this exception.

Constructor Detail

CSSInvalidPrincipalException

public CSSInvalidPrincipalException(java.lang.String explanation)
Deprecated.  

Constructor with explanation argument.

Parameters:
explanation - String that states the reason for the exception.

CSSInvalidPrincipalException

public CSSInvalidPrincipalException(java.lang.String explanation,
                                    long errorCode)
Deprecated.  

Constructor with explanation and errorCode arguments.

Parameters:
explanation - String that states the reason for the exception.
errorCode - Specifies the type of error and is associated with an exception class.

CSSInvalidPrincipalException

public CSSInvalidPrincipalException(java.lang.Throwable rootException)
Deprecated.  

Constructor with rootException argument.

Parameters:
rootException - The exception that caused this exception.

CSSInvalidPrincipalException

public CSSInvalidPrincipalException(java.lang.String explanation,
                                    java.lang.Throwable rootException)
Deprecated.  

Constructor with explanation and rootException arguments.

Parameters:
explanation - String that states the reason for the exception.
rootException - The exception that caused this exception.

CSSInvalidPrincipalException

public CSSInvalidPrincipalException(long areaCode,
                                    long errorCode)
Constructs a new exception with the specified error code.

This constructor will log the error message by default in

  • CSSLogger#ERROR_LEVEL.

    The error codes are defined in

  • CSSErrorCodeIF

    Sample use of the exception:

    
     throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR);
     

    Parameters:
    areaCode - - the area code of the error occured.
    errorCode - - the error code of the error message. The detail message is saved for later retrieval by the CSSException.getMessage() method.

  • CSSInvalidPrincipalException

    public CSSInvalidPrincipalException(long areaCode,
                                        long errorCode,
                                        int logLevel)
    Constructs a new exception with the specified error code.

    This constructor will log the error message for the specified log level.

    The error codes are defined in

  • CSSErrorCodeIF

    The level should be one of the following:

  • CSSLogger#FATAL_LEVEL
  • CSSLogger#ERROR_LEVEL
  • CSSLogger#WARN_LEVEL
  • CSSLogger#INFO_LEVEL
  • CSSLogger#DEBUG_LEVEL

    Sample use of the exception:

    
     throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR,
             CSSLogger.DEBUG_LEVEL);
     

    Parameters:
    areaCode - - the area code of the error occured.
    errorCode - - the error code of the error message. The detail message is saved for later retrieval by the CSSException.getMessage() method.
    logLevel - - the level of the logging request

  • CSSInvalidPrincipalException

    public CSSInvalidPrincipalException(long areaCode,
                                        long errorCode,
                                        java.lang.String[] errorArguments)
    Constructs a new exception with the specified error code.

    This constructor will log the error message by default in

  • CSSLogger#ERROR_LEVEL.

    The error codes are defined in

  • CSSErrorCodeIF

    Sample use of the exception:

    
     throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR,
             new String[] { "argurments" });
     

    Parameters:
    areaCode - - the area code of the error occured.
    errorCode - - the error code of the error message. The detail message is saved for later retrieval by the CSSException.getMessage() method.
    errorArguments - - the error arguments to be assinged into error message.

  • CSSInvalidPrincipalException

    public CSSInvalidPrincipalException(long areaCode,
                                        long errorCode,
                                        java.lang.String[] errorArguments,
                                        int logLevel)
    Constructs a new exception with the specified error code.

    This constructor will log the error message for the specified log level.

    The error codes are defined in

  • CSSErrorCodeIF

    The level should be one of the following:

  • CSSLogger#FATAL_LEVEL
  • CSSLogger#ERROR_LEVEL
  • CSSLogger#WARN_LEVEL
  • CSSLogger#INFO_LEVEL
  • CSSLogger#DEBUG_LEVEL

    Sample use of the exception:

    
     throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR,
             new String[] { "argurments" }, CSSLogger.DEBUG_LEVEL);
     

    Parameters:
    areaCode - - the area code of the error occured.
    errorCode - - the error code of the error message. The detail message is saved for later retrieval by the CSSException.getMessage() method.
    errorArguments - - the error arguments to be assinged into error message.
    logLevel - - the level of the logging request

  • CSSInvalidPrincipalException

    public CSSInvalidPrincipalException(long areaCode,
                                        long errorCode,
                                        java.lang.Throwable rootException)
    Constructs a new exception with the specified error code.

    This constructor will log the error message by default in

  • CSSLogger#ERROR_LEVEL.

    The stack trace would be logged only if DEBUG level is enabled else only the error message is logged.

    The error codes are defined in
  • CSSErrorCodeIF

    Sample use of the exception:

    
     throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR,
             rootException);
     

    Parameters:
    areaCode - - the area code of the error occured.
    errorCode - - the error code of the error message. The detail message is saved for later retrieval by the CSSException.getMessage() method.
    rootException - - the root cause (which is saved for later retrieval by the CSSException.getRootCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

  • CSSInvalidPrincipalException

    public CSSInvalidPrincipalException(long areaCode,
                                        long errorCode,
                                        java.lang.Throwable rootException,
                                        int logLevel)
    Constructs a new exception with the specified error code.

    This constructor will log the error message for the specified log level.

    The stack trace would be logged only if DEBUG level is enabled else only the error message is logged.

    The error codes are defined in
  • CSSErrorCodeIF

    The level should be one of the following:

  • CSSLogger#FATAL_LEVEL
  • CSSLogger#ERROR_LEVEL
  • CSSLogger#WARN_LEVEL
  • CSSLogger#INFO_LEVEL
  • CSSLogger#DEBUG_LEVEL

    Sample use of the exception:

    
     throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR,
             rootException, CSSLogger.DEBUG_LEVEL);
     

    Parameters:
    areaCode - - the area code of the error occured.
    errorCode - - the error code of the error message. The detail message is saved for later retrieval by the CSSException.getMessage() method.
    rootException - - the root cause (which is saved for later retrieval by the CSSException.getRootCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    logLevel - - the level of the logging request

  • CSSInvalidPrincipalException

    public CSSInvalidPrincipalException(long areaCode,
                                        long errorCode,
                                        java.lang.String[] errorArguments,
                                        java.lang.Throwable rootException)
    Constructs a new exception with the specified error code.

    This constructor will log the error message by default in

  • CSSLogger#ERROR_LEVEL.

    The stack trace would be logged only if DEBUG level is enabled else only the error message is logged.

    The error codes are defined in
  • CSSErrorCodeIF

    Sample use of the exception:

    
     throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR,
             new String[] { "argurments" }, rootException);
     

    Parameters:
    areaCode - - the area code of the error occured.
    errorCode - - the error code of the error message. The detail message is saved for later retrieval by the CSSException.getMessage() method.
    errorArguments - - the error arguments to be assinged into error message.
    rootException - - the root cause (which is saved for later retrieval by the CSSException.getRootCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

  • CSSInvalidPrincipalException

    public CSSInvalidPrincipalException(long areaCode,
                                        long errorCode,
                                        java.lang.String[] errorArguments,
                                        java.lang.Throwable rootException,
                                        int logLevel)
    Constructs a new exception with the specified error code.

    This constructor will log the error message for the specified log level.

    The stack trace would be logged only if DEBUG level is enabled else only the error message is logged.

    The error codes are defined in
  • CSSErrorCodeIF

    The level should be one of the following:

  • CSSLogger#FATAL_LEVEL
  • CSSLogger#ERROR_LEVEL
  • CSSLogger#WARN_LEVEL
  • CSSLogger#INFO_LEVEL
  • CSSLogger#DEBUG_LEVEL

    Sample use of the exception:

    
     throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR,
             new String[] { "argurments" }, rootException);
     

    Parameters:
    areaCode - - the area code of the error occured.
    errorCode - - the error code of the error message. The detail message is saved for later retrieval by the CSSException.getMessage() method.
    errorArguments - - the error arguments to be assinged into error message.
    rootException - - the root cause (which is saved for later retrieval by the CSSException.getRootCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    logLevel - - the level of the logging request

  • CSSInvalidPrincipalException

    public CSSInvalidPrincipalException()
    Deprecated.  

    Constructor with no arguments.

    Method Detail

    getErrorCode

    public long getErrorCode()
    Deprecated.  

    Gets the error Code. Need to override this method so that the right error code gets assigned. Note that Java methods are virtual but not instance variables.

    Specified by:
    getErrorCode in interface CSSAppExceptionIF
    Overrides:
    getErrorCode in class CSSException
    Returns:
    long - the error code

    setErrorCode

    public void setErrorCode(long errorCode)
    Deprecated.  

    Sets the error code.

    Specified by:
    setErrorCode in interface CSSAppExceptionIF
    Overrides:
    setErrorCode in class CSSException
    Parameters:
    errorCode - - Specifies the type of error and is associated with an exception class.


    Copyright © 2005-2009 Oracle Corporation.