|
Préférences
Moteurs de recherche
|
|||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
org.xml.sax
|
Constructor Summary | |
---|---|
SAXException()
Create a new SAXException. |
|
SAXException(Exception e)
Create a new SAXException wrapping an existing exception. |
|
SAXException(String message)
Create a new SAXException. |
|
SAXException(String message,
Exception e)
Create a new SAXException from an existing exception. |
Method Summary | |
---|---|
Exception |
getException()
Return the embedded exception, if any. |
String |
getMessage()
Return a detail message for this exception. |
String |
toString()
Override toString to pick up any embedded exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SAXException()
public SAXException(String message)
message
- The error or warning message.public SAXException(Exception e)
The existing exception will be embedded in the new one, and its message will become the default message for the SAXException.
e
- The exception to be wrapped in a SAXException.public SAXException(String message, Exception e)
The existing exception will be embedded in the new one, but the new exception will have its own message.
message
- The detail message.e
- The exception to be wrapped in a SAXException.Method Detail |
---|
public String getMessage()
If there is an embedded exception, and if the SAXException has no detail message of its own, this method will return the detail message from the embedded exception.
getMessage
in class Throwable
public Exception getException()
public String toString()