|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.apelon.common.NestingException com.apelon.dts.client.DTSException
public final class DTSException
DTSException is a general exception class. A DTSException is an exception that originates in the com.apelon.dts.client package, where all of the client side messages are built and read from the communication layer.
DTSException is a "Nesting Exception." It may have another exception stored in an instance variable. As such, its getMessage, printStackTrace, and toString methods may return one or multiple messages, stack traces, or string representations, respectively. Nesting Exceptions can be used to create an "exception chain" that indicates error information as an exception propogates through many application layers. Exception chains assure that no error information is lost as successive application classes handle a given error case (this is especially useful in server-side error handling).
Nonetheless, DTSException is only an Exception object, and clients of DTSException are expected to adhere to the Exception and Throwable interfaces only. You should use no other methods, with the exception of getNestedException, which can be used to retrieve the "cause" of this exception.
Likewise, DTSException instances should be created only by DTS classes. Clients of this API should not construct instances of this class.
DTSException's direct superclass is not part of the public API.
Copyright: Copyright (c) 2002
Company: Apelon, Inc.
Exception
,
Throwable
,
Serialized FormField Summary |
---|
Fields inherited from class com.apelon.common.NestingException |
---|
fCause |
Constructor Summary | |
---|---|
DTSException(Exception nested_ex)
This constructor is provided for the DTS internal use only. |
|
DTSException(String msg)
This constructor is provided for the DTS internal use only. |
|
DTSException(String msg,
Exception nested_ex)
This constructor is provided for the DTS internal use only. |
Method Summary | |
---|---|
static Exception |
getNestedException()
Retrieve the "cause" of this exception. |
boolean |
isServerAvailable()
Indicates that there was a problem communicating with the server. |
protected void |
setCause(Exception newCause)
This method is provided for DTS internal use only. |
Methods inherited from class com.apelon.common.NestingException |
---|
cause, getMessage, lineSeparator, primaryMessage, primaryPst, primaryPst, primaryPst, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DTSException(String msg)
msg
- exception message textpublic DTSException(Exception nested_ex)
nested_ex
- nested exceptionpublic DTSException(String msg, Exception nested_ex)
msg
- exception message textnested_ex
- nested exceptionMethod Detail |
---|
public static Exception getNestedException()
protected void setCause(Exception newCause)
setCause
in class com.apelon.common.NestingException
newCause
- nested exceptionpublic boolean isServerAvailable()
This is a convenience method to allow clients to determine if the root cause of the problem is actually a server communication problem (i.e. the server was not running at the time of the query, or network access was interrupted).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |