|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.rakeshv.xml.addressbook.AddressException
public class AddressException
A custom exception that is used when any kind of exceptions are encountered when interacting with the JDOM package. Instances of this exception are also thrown, when implementation specific error conditions are encountered.
Copyright 2003 Rakesh Vidyadharan
| Field Summary | |
|---|---|
private boolean |
critical
A boolean field that indicates the criticality of the error. |
private java.lang.Throwable |
exception
The exception that lead to this custom exception being thrown. |
private java.lang.String |
message
The "friendly" error message that describes the error that was encountered. |
| Constructor Summary | |
|---|---|
AddressException(boolean critical,
java.lang.String message)
Create a new exception with the specified message. |
|
AddressException(boolean critical,
java.lang.String message,
java.lang.Throwable exception)
Create a new exception with the specified message and instance of Throwable that caused the problem. |
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getException()
Return the value/reference of the exception. |
java.lang.String |
toString()
Over-ridden form of the method inherited from the parent class. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean critical
true is used to indicate a critical error,
while a value of false is used to indicate a non
critical error.
private java.lang.String message
private java.lang.Throwable exception
| Constructor Detail |
|---|
public AddressException(boolean critical,
java.lang.String message)
critical - - Use a value true to
indicate that the error encountered was critical.message - - The message that describes the problem.
public AddressException(boolean critical,
java.lang.String message,
java.lang.Throwable exception)
Throwable that caused the problem.
critical - - Use a value true to
indicate that the error encountered was critical.message - - The message that describes the problem.exception - - The exception that caused this
instance of the exception to be thrown.| Method Detail |
|---|
public java.lang.String toString()
message value.
toString in class java.lang.Throwablemessage value.public final java.lang.Throwable getException()
exception.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||