|
||||||||||
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(Exception exception)
Construct an exception wrapping another exception. |
|
NewsMLException(String message)
Construct an exception with an explicit message. |
|
NewsMLException(String message,
Exception exception)
Construct an exception with a message and embedded exception. |
Method Summary | |
Exception |
getException()
Get the embedded exception, if any. |
String |
getMessage()
Get the message for the exception, if any. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NewsMLException()
public NewsMLException(String message)
message
- The error message for the exception.public NewsMLException(Exception exception)
exception
- The exception being wrapped.public NewsMLException(String message, Exception exception)
message
- The error message.exception
- The exception being wrapped.Method Detail |
public String getMessage()
If there is no explicit message, look for a message in the embedded exception (if present).
getMessage
in class Throwable
public Exception getException()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |