|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.wm.util.LocalizedException
com.wm.lang.ns.NSException
com.wm.app.b2b.client.ServiceException
public class ServiceException
This is a general exception thrown when a service fails. When the server throws an exception that does not exist on the client, ServiceException contains the name and text message of the error from the server.
AccessException
,
DeliveryException
,
InvalidRequestException
,
TXException
,
Serialized FormConstructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.wm.util.LocalizedException |
---|
getErrorDetails, getLocalizedMessage, getMsgId, getMsgOnly, getMsgOnly, getWrappedException, setErrorDetails |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |