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)
Constructs a
CLLException with the specified parameters. |
static CLLException |
createCLLException(java.lang.String id,
java.util.Locale locale,
java.lang.Throwable throwable,
java.lang.Object... positionalParams)
Constructs a
CLLException with the specified parameters. |
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
- The 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
- The localized error message objectcause
- The 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
- The unique message identifierthrowable
- The exceptions to wrap into CLLExceptionpositionalParams
- The 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
- The unique message identifierpositionalParams
- The 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)
CLLException
with the specified parameters.id
- The unique message identifierlocale
- The locale used to localize the messagethrowable
- The exceptions to wrap into CLLExceptionpositionalParams
- The positional parameters for constructing an exception messageCLLException
instancepublic static CLLException createCLLException(java.lang.String id, java.util.Locale locale, java.lang.Object... positionalParams)
CLLException
with the specified parameters.id
- The unique message identifierlocale
- The locale used to localize the messagepositionalParams
- The positional parameters for constructing an exception messageCLLException
instance