|
||||||||||
| 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.edustructures.sifworks.ADKException
public class ADKException
The base class for all exception classes defined by the ADK.
ADKExceptions have the following characteristics:
| Constructor Summary | |
|---|---|
ADKException(java.lang.String msg,
Zone zone)
Constructs an exception with a detailed message that occurs in the context of a zone |
|
ADKException(java.lang.String msg,
Zone zone,
java.lang.Throwable src)
Constructs an exception with a detailed message that occurs in the context of a zone |
|
| Method Summary | |
|---|---|
void |
add(java.lang.Throwable thr)
Adds a child exception |
java.lang.Throwable[] |
getChildren()
Gets the child exceptions, if any |
boolean |
getRetry()
Determines if the ADK should attempt to retry the operation associated with this exception. |
SIFException[] |
getSIFExceptions()
Gets all child SIFExceptions, if any |
Zone |
getZone()
Gets the zone associated with this exception. |
java.lang.String |
getZoneId()
Gets the ID of the zone associated with this exception. |
boolean |
hasChildren()
Determines if this exception has nested child exceptions |
boolean |
hasSIFError(int category)
Deprecated. Please use the overload of this method that accepts a SIFErrorCategory |
boolean |
hasSIFError(int category,
int code)
Deprecated. Please use the overload of this method that accepts a SIFErrorCategory as the first parameter |
boolean |
hasSIFError(SIFErrorCategory category)
Determines if this exception contains at least one nested SIFException with the specified error category. |
boolean |
hasSIFError(SIFErrorCategory category,
int code)
Determines if this exception contains at least one nested SIFException with the specified error category and code. |
boolean |
hasSIFExceptions()
Determines if this exception contains any SIFException children. |
void |
log(org.apache.log4j.Category def)
Write this exception and all of its nested exceptions to Log4j. |
void |
log(org.apache.log4j.Category def,
int indent)
Logs the exception to the Category, using the "error" logging level |
void |
setRetry(boolean retry)
Determines if the ADK should attempt to retry the operation associated with this exception. |
java.lang.String |
toString()
Returns a string representation of this exception and all child exceptions formatted for printing to System.out. |
java.lang.String |
toString(int indent,
boolean includeChildren)
Returns a string representation of this exception and all child exceptions formatted for printing to System.out. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ADKException(java.lang.String msg,
Zone zone)
msg - A message describing the exceptionzone - The zone associated with the exception
public ADKException(java.lang.String msg,
Zone zone,
java.lang.Throwable src)
msg - A message describing the exceptionzone - The zone associated with the exceptionsrc - The source exception| Method Detail |
|---|
public Zone getZone()
Note: The ADK's Zone interface does not support Java RMI.
Therefore, this method will return a null value when called
by an RMI-based client on a marshalled ADKException object. RMI clients
should instead use the getZoneId method to learn the ID of
the zone passed to the constructor.
getZoneId()public java.lang.String getZoneId()
getZone()public boolean hasChildren()
public void add(java.lang.Throwable thr)
thr - A new child exceptionpublic java.lang.Throwable[] getChildren()
public void setRetry(boolean retry)
retry - When true, the exception is flagged for retry. The method
that catches the exception should attempt to retry the operation in
progress.public boolean getRetry()
public boolean hasSIFExceptions()
public SIFException[] getSIFExceptions()
public boolean hasSIFError(int category)
category - The error category to search for
public boolean hasSIFError(SIFErrorCategory category)
category - The error category to search for
public boolean hasSIFError(int category,
int code)
category - The error category to search forcode - The error code to search for
public boolean hasSIFError(SIFErrorCategory category,
int code)
category - The error category to search forcode - The error code to search for
public java.lang.String toString()
toString in class java.lang.Throwable
public java.lang.String toString(int indent,
boolean includeChildren)
indent - The amount of indentation to apply to the stringincludeChildren - True if all children should be returned
public void log(org.apache.log4j.Category def)
def - The category to log to
public void log(org.apache.log4j.Category def,
int indent)
def - The Category to log toindent - The amount of indentation to apply
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||