public class OdiSKMException extends DataServiceException
OdiKMException
. Its implementation is based on
OdiKMException, OdiUncheckedException
and some methods from ErrorMessageUtils
.Constructor and Description |
---|
OdiSKMException(java.lang.String pKey)
Constructor for SKM error message.
|
OdiSKMException(java.lang.String pKey,
java.lang.Object[] pMsgArgs)
Constructor for SKM error message.with Message arguments
|
OdiSKMException(java.lang.String pKey,
java.lang.String pOverrideMessage)
A SKM exception whose message is given by pKey.
|
OdiSKMException(java.lang.String pKey,
java.lang.String pOverrideMessage,
java.lang.Object[] pMsgArgs)
A SKM exception whose message is given by pKey
and may be parameterized by pMsgArgs.
|
OdiSKMException(java.lang.Throwable pCause,
java.lang.String pKey,
java.lang.Object[] pMsgArgs)
Allow the SKM exception to have a Causal exception
|
OdiSKMException(java.lang.Throwable pCause,
java.lang.String pKey,
java.lang.String pOverrideMessage,
java.lang.Object[] pMsgArgs)
Allow the SKM exception to have a parameterized message, and a Causal exception
and an OverrideMessage
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorID()
Gets this exception's error ID.
|
OdiSKMMessageHandle |
getErrorMsgHandle()
Gets the error message handle.
|
java.lang.String |
getLocalizedMessage()
Gets this exception's error message for the default locale.
|
java.lang.String |
getLocalizedMessage(java.util.Locale pLocale)
Gets this exception's error message for the given locale.
|
java.lang.String |
getMessage() |
java.lang.Object |
getSourceObject()
Retrieve the source object associated with this exception
|
void |
setSourceObject(java.lang.Object pSourceObject)
Set the source object associated with this exception
|
public OdiSKMException(java.lang.String pKey)
pKey
- Key to custom error message.public OdiSKMException(java.lang.String pKey, java.lang.Object[] pMsgArgs)
pKey
- Key to custom error message.pMsgArgs
- error message arguments, as an array because it is accessible from Jython.public OdiSKMException(java.lang.String pKey, java.lang.String pOverrideMessage)
public OdiSKMException(java.lang.String pKey, java.lang.String pOverrideMessage, java.lang.Object[] pMsgArgs)
public OdiSKMException(java.lang.Throwable pCause, java.lang.String pKey, java.lang.Object[] pMsgArgs)
public OdiSKMException(java.lang.Throwable pCause, java.lang.String pKey, java.lang.String pOverrideMessage, java.lang.Object[] pMsgArgs)
public void setSourceObject(java.lang.Object pSourceObject)
pObject
- Source object associated with this exceptionpublic java.lang.Object getSourceObject()
public java.lang.String getLocalizedMessage(java.util.Locale pLocale)
getLocalizedMessage(Locale)
then the message
will be returned in the locale provided, otherwise it will be returned in the
default locale.pLocale
- locale in which to return error message, or null
if undefined (default locale will then be used)public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
getLocalizedMessage(Locale)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public OdiSKMMessageHandle getErrorMsgHandle()
public java.lang.String getErrorID()