Serializable
XMLParseException
, XMLValidationException
public class XMLException extends Exception
Constructor | Description |
---|---|
XMLException(Exception e) |
Creates a new exception.
|
XMLException(String msg) |
Creates a new exception.
|
XMLException(String systemID,
int lineNr,
Exception e) |
Creates a new exception.
|
XMLException(String systemID,
int lineNr,
Exception e,
String msg,
boolean reportParams) |
Creates a new exception.
|
XMLException(String systemID,
int lineNr,
String msg) |
Creates a new exception.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
finalize() |
Cleans up the object when it's destroyed.
|
Exception |
getException() |
Returns the encapsulated exception, or null if no exception is
encapsulated.
|
int |
getLineNr() |
Returns the line number in the XML data where the exception occurred.
|
String |
getSystemID() |
Returns the system ID of the XML data where the exception occurred.
|
void |
printStackTrace() |
Dumps the exception stack to System.err.
|
void |
printStackTrace(PrintStream stream) |
Dumps the exception stack to an output stream.
|
void |
printStackTrace(PrintWriter writer) |
Dumps the exception stack to a print writer.
|
String |
toString() |
Returns a string representation of the exception.
|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public XMLException(String msg)
msg
- the message of the exception.public XMLException(Exception e)
e
- the encapsulated exception.public XMLException(String systemID, int lineNr, Exception e)
systemID
- the system ID of the XML data where the exception
occurredlineNr
- the line number in the XML data where the exception
occurred.e
- the encapsulated exception.public XMLException(String systemID, int lineNr, String msg)
systemID
- the system ID of the XML data where the exception
occurredlineNr
- the line number in the XML data where the exception
occurred.msg
- the message of the exception.public XMLException(String systemID, int lineNr, Exception e, String msg, boolean reportParams)
systemID
- the system ID from where the data camelineNr
- the line number in the XML data where the exception
occurred.e
- the encapsulated exception.msg
- the message of the exception.reportParams
- true if the systemID, lineNr and e params need to be
appended to the messageprotected void finalize() throws Throwable
public String getSystemID()
public int getLineNr()
public Exception getException()
public void printStackTrace(PrintWriter writer)
printStackTrace
in class Throwable
writer
- the print writerpublic void printStackTrace(PrintStream stream)
printStackTrace
in class Throwable
stream
- the output streampublic void printStackTrace()
printStackTrace
in class Throwable