public class ServiceException extends NSException
Constructor and Description |
---|
ServiceException()
Constructs a ServiceException with no detailed error message.
|
ServiceException(java.lang.String msg)
Constructs a ServiceException with the specified message.
|
ServiceException(java.lang.String msg,
java.lang.String eType)
Constructs a ServiceException with the specified message and error type.
|
ServiceException(java.lang.String msg,
java.lang.String eType,
java.lang.String eDump)
Constructs a ServiceException with a specified message, error type, and an error dump.
|
ServiceException(java.lang.Throwable t)
Constructs a ServiceException using the specified Throwable object as input.
|
ServiceException(Values in)
Constructs a ServiceException using the specified Values object as input.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorDump()
Returns the error dump from this ServiceException.
|
Values |
getErrorInfo()
Returns the error information contained in this ServiceException object as a Values object.
|
java.lang.String |
getErrorType()
Returns this ServiceException object's error type.
|
java.lang.String |
getLocalizedMessage()
Following copied from class: com.wm.util.LocalizedException
|
java.lang.String |
getMessage()
Returns this ServiceException object's detailed error message.
|
java.lang.Exception |
getOriginalException()
Attempts to construct, on the client, an instance of the same exception that was originally thrown by the server.
|
void |
reThrow()
Attempts to construct and throw, on the client, an instance of the same exception that was originally thrown by the server.
|
java.lang.String |
toString()
Returns this ServiceException as a string.
|
getErrorDetails, getLocalizedMessage, getMsgId, getMsgOnly, getMsgOnly, getWrappedException, setErrorDetails
public ServiceException()
public ServiceException(java.lang.String msg)
msg
- A String specifying the detailed error message for this ServiceException.public ServiceException(java.lang.String msg, java.lang.String eType)
msg
- A String specifying the detailed error message for this ServiceException.eType
- A String specifying the error type for this ServiceException (for example, "java.lang.ArrayIndexOutOfBoundsException").public ServiceException(java.lang.String msg, java.lang.String eType, java.lang.String eDump)
msg
- A String specifying the detailed error message for this ServiceException.eType
- A String specifying the error type for this ServiceException.eDump
- A String specifying the error dump.public ServiceException(Values in)
in
- A Values object that contains error information.public ServiceException(java.lang.Throwable t)
t
- A Throwable object that contains error information.public java.lang.String getErrorDump()
public Values getErrorInfo()
public java.lang.String getErrorType()
public java.lang.String getMessage()
getMessage
in class LocalizedException
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class LocalizedException
public java.lang.Exception getOriginalException()
reThrow()
public void reThrow() throws java.lang.Exception
A
- new instance of the same exception thrown by the server if the client can reconstruct that exception. If that exception cannot be constructed, this ServiceException is thrown.java.lang.Exception
getOriginalException()
public java.lang.String toString()
toString
in class java.lang.Throwable