public abstract class MXException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
java.lang.Throwable |
detail
For nested exceptions, this will contain the original exception
|
java.lang.Object[] |
params
List of additional parameters that contain other information that can be
used in an exception specific way.
|
Constructor and Description |
---|
MXException(java.lang.String eg,
java.lang.String ek)
Constructor specifying the Error Group and Error Key
|
MXException(java.lang.String eg,
java.lang.String ek,
java.lang.Object[] params)
Constructor specifying the Error Group, Error Key and additonal
information.
|
MXException(java.lang.String eg,
java.lang.String ek,
java.lang.Object[] params,
java.lang.Throwable t)
Constructor specifying the Error Group, Error Key, additonal information
and the exception that was the original cause.
|
MXException(java.lang.String eg,
java.lang.String ek,
java.lang.Throwable t)
Constructor specifying the Error Group, Error Key and the
exception that was the original cause.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.String g,
java.lang.String k)
Is the exception 'equal' to the specified error group and key ?
|
java.lang.Throwable |
getDetail()
Get the nested exception.
|
java.lang.String |
getDisplayMessage()
Produce the message.
|
java.lang.String |
getErrorAttr() |
MaxType |
getErrorAttrValue() |
java.lang.String |
getErrorCorrelationId() |
java.lang.String |
getErrorGroup()
General group of the error, e.g.
|
java.lang.String |
getErrorKey()
Get the key of the error in the error group.
|
java.lang.String |
getErrorObjectName() |
java.lang.String |
getForcedLangCode()
Get the language the message will be thrown
|
java.lang.String |
getMessage()
Produce the message, including the message from the nested
exception if there is one.
|
java.lang.String |
getMessage(MboSetRemote remoteObj)
Return the Exception's message.
|
java.lang.Object[] |
getParameters()
Return the parameters of the exception.
|
boolean |
hasDetail()
Deoes this exception have nested exceptions.
|
boolean |
hasParameters()
Does this exception have additional information specified as paramters ?
|
static boolean |
isServerSide()
Called to see if the MXException class believes it's being used
in an MXServer and therefore should be doing logging.
|
void |
setErrorAttr(java.lang.String errorMeta) |
void |
setErrorAttrValue(MaxType val) |
void |
setErrorCorrelationId(java.lang.String errorCorrelationId) |
void |
setErrorObjectName(java.lang.String errorObjectName) |
void |
setForcedLangCode(java.lang.String langCode)
Use this language to get the message from cache.
|
static void |
setServerSide(boolean value)
Called by the MXServer to indicate that the exceptions generated can be logged
via the MonitorStream error output.
|
public java.lang.Throwable detail
public java.lang.Object[] params
public MXException(java.lang.String eg, java.lang.String ek)
public MXException(java.lang.String eg, java.lang.String ek, java.lang.Throwable t)
public MXException(java.lang.String eg, java.lang.String ek, java.lang.Object[] params)
public MXException(java.lang.String eg, java.lang.String ek, java.lang.Object[] params, java.lang.Throwable t)
public static void setServerSide(boolean value)
public static boolean isServerSide()
public boolean hasParameters()
public boolean hasDetail()
public java.lang.Throwable getDetail()
public java.lang.Object[] getParameters()
public java.lang.String getErrorGroup()
public java.lang.String getErrorKey()
public boolean equals(java.lang.String g, java.lang.String k)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getErrorAttr()
public void setErrorAttr(java.lang.String errorMeta)
public void setErrorAttrValue(MaxType val)
public MaxType getErrorAttrValue()
public java.lang.String getErrorObjectName()
public void setErrorObjectName(java.lang.String errorObjectName)
public java.lang.String getErrorCorrelationId()
public void setErrorCorrelationId(java.lang.String errorCorrelationId)
public java.lang.String getDisplayMessage()
public java.lang.String getMessage(MboSetRemote remoteObj) throws MXException
remoteObject
- Remote Mbo set whose user info's language code will
be used to lookup the message on the server.MXException
public java.lang.String getForcedLangCode()
public void setForcedLangCode(java.lang.String langCode)
langCode
-