|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.io.IOException | +--org.newsml.toolkit.NewsMLException
A NewsML-related exception.
This class extends IOException
for two reasons:
The class may embed another exception of some kind, such as a
SAXException
, depending on the implementation
being used.
Constructor Summary | |
NewsMLException()
Construct an exception with no message. |
|
NewsMLException(java.lang.Exception exception)
Construct an exception wrapping another exception. |
|
NewsMLException(java.lang.String message)
Construct an exception with an explicit message. |
|
NewsMLException(java.lang.String message,
java.lang.Exception exception)
Construct an exception with a message and embedded exception. |
Method Summary | |
java.lang.Exception |
getException()
Get the embedded exception, if any. |
java.lang.String |
getMessage()
Get the message for the exception, if any. |
java.lang.String |
toString()
Override toString to pick up any embedded exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NewsMLException()
public NewsMLException(java.lang.String message)
message
- The error message for the exception.public NewsMLException(java.lang.Exception exception)
exception
- The exception being wrapped.public NewsMLException(java.lang.String message, java.lang.Exception exception)
message
- The error message.exception
- The exception being wrapped.Method Detail |
public java.lang.String getMessage()
If there is no explicit message, look for a message in the embedded exception (if present).
getMessage
in class java.lang.Throwable
public java.lang.Exception getException()
public java.lang.String toString()
toString
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |