|
||||||||||
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.apelonserver.client.ApelonException
public final class ApelonException
ApelonException is a general exception class.
An ApelonException is an exception that originates in the com.apelon.apelonserver.client package, where all of the client side communication layer resides.
ApelonException 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 shows 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, ApelonException is simply an Exception object, and clients of ApelonExcetion are expected to adhere to the Exception and Throwable interfaces only.
Any other methods should simply not be used, with the exception of getNestedException, which can be used to retrieve the "cause" of this exception.
Likewise, ApelonException instances should only be created by Apelon Server classes. Clients of this API should not construct instances of this class.
ApelonException's direct superclass is not part of the public API.
Copyright: Copyright (c) 2002
Company: Apelon
Exception
,
Throwable
,
Serialized FormConstructor Summary | |
---|---|
ApelonException(String s)
This constructor is provided for the Apelon Server's internal use only. |
|
ApelonException(String msg,
Exception nested_ex,
boolean isServerAvailable)
This constructor is provided for the Apelon Server's internal use only. |
|
ApelonException(String msg,
Throwable nested_ex)
This constructor is provided for the Apelon Server's internal use only. |
Method Summary | |
---|---|
boolean |
isServerAvailable()
Indicates that there was a problem communicating with the server. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApelonException(String s)
s
- exception message textpublic ApelonException(String msg, Throwable nested_ex)
msg
- exception message textnested_ex
- nested exceptionpublic ApelonException(String msg, Exception nested_ex, boolean isServerAvailable)
msg
- exception message textnested_ex
- nested exceptionisServerAvailable
- indicates that the ApelonException was caused by
a problem with the socket connection. Either
the server or the network was downMethod Detail |
---|
public boolean isServerAvailable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |