public class CLLException
extends java.lang.Exception
Constructor and Description |
---|
CLLException(CLLMessage msgObject)
Construct a
CLLException instance from the given CLLMessage object. |
CLLException(CLLMessage msgObject,
java.lang.Throwable cause)
Construct a
CLLException instance from the given CLLMessage object
with a wrapped exception from Throwable . |
Modifier and Type | Method and Description |
---|---|
static CLLException |
createCLLException(java.lang.String id,
java.util.Locale locale,
java.lang.Object... positionalParams)
Creates the cll exception.
|
static CLLException |
createCLLException(java.lang.String id,
java.util.Locale locale,
java.lang.Throwable throwable,
java.lang.Object... positionalParams)
Creates the cll exception.
|
static CLLException |
createCLLException(java.lang.String id,
java.lang.Object... positionalParams)
Constructs a
CLLException with the specified parameters. |
static CLLException |
createCLLException(java.lang.String id,
java.lang.Throwable throwable,
java.lang.Object... positionalParams)
Constructs a
CLLException with the specified parameters. |
java.lang.String |
getAction()
Returns the corrective actions on occurrence of a particular exception with the given message Id.
|
java.lang.String |
getExplanation()
Returns the explanation of an exception message with the given message Id.
|
java.lang.String |
getMessage()
Overrides Throwable.getMessage() method
Returns the message text of an exception message with the given message Id.
|
CLLMessage |
getMessageObject()
Returns the localized message object.
|
java.lang.String |
toString()
Overrides Throwable.toString() method.
|
public CLLException(CLLMessage msgObject)
CLLException
instance from the given CLLMessage
object.msgObject
- Localized error message objectpublic CLLException(CLLMessage msgObject, java.lang.Throwable cause)
CLLException
instance from the given CLLMessage
object
with a wrapped exception from Throwable
.msgObject
- Localized error message objectcause
- Wrapped exception messagepublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getExplanation()
public java.lang.String getAction()
public java.lang.String toString()
toString
in class java.lang.Throwable
public CLLMessage getMessageObject()
CLLMessage
object containing the error descriptionpublic static CLLException createCLLException(java.lang.String id, java.lang.Throwable throwable, java.lang.Object... positionalParams)
CLLException
with the specified parameters.id
- Unique message identifierthrowable
- Exceptions to wrap into CLLExceptionpositionalParams
- Positional parameters for constructing an exception messageCLLException
instancepublic static CLLException createCLLException(java.lang.String id, java.lang.Object... positionalParams)
CLLException
with the specified parameters.id
- Unique message identifierpositionalParams
- Positional parameters for constructing an exception messageCLLException
instancepublic static CLLException createCLLException(java.lang.String id, java.util.Locale locale, java.lang.Throwable throwable, java.lang.Object... positionalParams)
id
- the idlocale
- the localethrowable
- the throwablepositionalParams
- the positional paramspublic static CLLException createCLLException(java.lang.String id, java.util.Locale locale, java.lang.Object... positionalParams)
id
- the idlocale
- the localepositionalParams
- the positional params