public class FlexCheckedException
extends java.lang.Exception
Constructor and Description |
---|
FlexCheckedException()
Default constructor.
|
FlexCheckedException(java.lang.String pMessage)
Creates an exception with the given message.
|
FlexCheckedException(java.lang.String pMessage,
boolean pLogOnInit)
Creates an exception with the given message
|
FlexCheckedException(java.lang.String pCode,
java.lang.String pMessage)
Creates an exception with the given name and code.
|
FlexCheckedException(java.lang.String pCode,
java.lang.String pMessage,
java.lang.Throwable pThrowable)
Creates an exception with the given code, message, and cause.
|
FlexCheckedException(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Creates an exception with the given message an cause.
|
FlexCheckedException(java.lang.Throwable pThrowable)
Creates an exception with the given cause
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
Returns the exception code.
|
java.lang.String |
getMessage() |
java.lang.String |
getPlainMessage()
Returns error message without exception code.
|
protected void |
log()
Logs exception information on initialization
|
protected boolean |
logOnInit()
Checks whether to log on initialization of this exception
|
void |
setCode(java.lang.String pCode)
Sets the exception code.
|
public FlexCheckedException()
public FlexCheckedException(java.lang.String pMessage, boolean pLogOnInit)
pMessage
- the exception messagepLogOnInit
- whether or not to log on initializationpublic FlexCheckedException(java.lang.String pMessage)
pMessage
- the exception messagepublic FlexCheckedException(java.lang.String pCode, java.lang.String pMessage)
pCode
- - a short code uniquely identifying where an exception is raised.pMessage
- - an exception message.public FlexCheckedException(java.lang.Throwable pThrowable)
pThrowable
- the cause of the exceptionpublic FlexCheckedException(java.lang.String pMessage, java.lang.Throwable pThrowable)
pMessage
- the exception messagepThrowable
- the cause of the exceptionpublic FlexCheckedException(java.lang.String pCode, java.lang.String pMessage, java.lang.Throwable pThrowable)
pCode
- the exception codepMessage
- the exception messagepThrowable
- the cause of the exceptionpublic void setCode(java.lang.String pCode)
pCode
- the exception codepublic java.lang.String getCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
protected void log()
protected boolean logOnInit()
public java.lang.String getPlainMessage()