|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.hyperion.css.CSSException
com.hyperion.css.CSSInvalidPrincipalException
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.
CSSAppExceptionIF.INVALID_PRINCIPAL_EXCEPTION
,
Serialized FormField 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 |
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 |
protected long errorCode
This is the default errorCode for this exception.
Constructor Detail |
public CSSInvalidPrincipalException(java.lang.String explanation)
Constructor with explanation argument.
explanation
- String that states the reason for the exception.public CSSInvalidPrincipalException(java.lang.String explanation, long errorCode)
Constructor with explanation and errorCode arguments.
explanation
- String that states the reason for the exception.errorCode
- Specifies the type of error and is associated with an
exception class.public CSSInvalidPrincipalException(java.lang.Throwable rootException)
Constructor with rootException argument.
rootException
- The exception that caused this exception.public CSSInvalidPrincipalException(java.lang.String explanation, java.lang.Throwable rootException)
Constructor with explanation and rootException arguments.
explanation
- String that states the reason for the exception.rootException
- The exception that caused this exception.public CSSInvalidPrincipalException(long areaCode, long errorCode)
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);
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.public CSSInvalidPrincipalException(long areaCode, long errorCode, int logLevel)
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);
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 requestpublic CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.String[] errorArguments)
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" });
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.public CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.String[] errorArguments, int logLevel)
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);
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 requestpublic CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.Throwable rootException)
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 inCSSErrorCodeIF
Sample use of the exception:
throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR,
rootException);
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.)public CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.Throwable rootException, int logLevel)
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 inCSSErrorCodeIF
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);
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 requestpublic CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.String[] errorArguments, java.lang.Throwable rootException)
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 inCSSErrorCodeIF
Sample use of the exception:
throw new CSSInvalidPrincipalException(CSSErrorCodeIF.GENERAL_ERROR,
new String[] { "argurments" }, rootException);
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.)public CSSInvalidPrincipalException(long areaCode, long errorCode, java.lang.String[] errorArguments, java.lang.Throwable rootException, int logLevel)
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 inCSSErrorCodeIF
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);
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 requestpublic CSSInvalidPrincipalException()
Constructor with no arguments.
Method Detail |
public long getErrorCode()
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.
getErrorCode
in interface CSSAppExceptionIF
getErrorCode
in class CSSException
public void setErrorCode(long errorCode)
Sets the error code.
setErrorCode
in interface CSSAppExceptionIF
setErrorCode
in class CSSException
errorCode
- - Specifies the type of error and is associated with an exception class.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |