|
||||||||||
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.sun.n1.sps.model.util.ClientException
public class ClientException
This is the base class for several public-api client exceptions. As a design goal, this class localizes all messages in the causal chain at the point of construction, and does not store SPS classes. This is to allow the serialization of this class to environments where the supporting SPS localization software may not be present.
Constructor Summary | |
---|---|
ClientException(java.lang.String inMessage)
Constructs a new exception with the specified detail message. |
|
ClientException(java.lang.String inMessage,
java.lang.Throwable inCause)
Constructs a new exception with the specified detail message and cause. |
|
ClientException(java.lang.Throwable inCause)
Constructs a new exception with the specified cause. |
Method Summary | |
---|---|
void |
printStackTrace(java.io.PrintStream s)
Prints this throwable and its backtrace to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this throwable and its backtrace to the specified print writer. |
static ClientException |
wrap(java.lang.Throwable inThrowable)
Returns a ClientException, wrapping any other throwable exception, if inThrowable is not an instance of inThrowable, and inThrowable otherwise. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientException(java.lang.Throwable inCause)
inCause
- - the specified cause.public ClientException(java.lang.String inMessage, java.lang.Throwable inCause)
inMessage
- - thr etail messaginCause
- - the causepublic ClientException(java.lang.String inMessage)
inMessage
- - te detail messageMethod Detail |
---|
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
s
- PrintWriter
to use for outputpublic void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
s
- PrintStream
to use for outputpublic static ClientException wrap(java.lang.Throwable inThrowable)
inThrowable
- - Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |