|
||||||||||
| 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.apelon.common.NestingException
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 Form| Field Summary |
|---|
| Fields inherited from class com.apelon.common.NestingException |
|---|
fCause |
| Constructor Summary | |
|---|---|
ApelonException(String s)
This constructor is provided for the Apelon Server's internal use only. |
|
ApelonException(String msg,
Exception nested_ex)
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. |
|
| Method Summary | |
|---|---|
boolean |
isServerAvailable()
Indicates that there was a problem communicating with the server. |
| Methods inherited from class com.apelon.common.NestingException |
|---|
cause, getMessage, lineSeparator, primaryMessage, primaryPst, primaryPst, primaryPst, printStackTrace, printStackTrace, printStackTrace, setCause |
| 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 ApelonException(String s)
s - exception message text
public ApelonException(String msg,
Exception nested_ex)
msg - exception message textnested_ex - nested exception
public ApelonException(String msg,
Exception nested_ex,
boolean isServerAvailable)
msg - exception message textnested_ex - nested exceptionisServerAvaliable - indicates that the ApelonException was caused by
a problem with the socket connection. Either
the server or the network was down| Method Detail |
|---|
public 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 | |||||||||