public class XMLException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
private java.lang.Exception |
encapsulatedException
Encapsulated exception.
|
private int |
lineNr
The line number in the XML data where the exception occurred.
|
private static long |
serialVersionUID |
private java.lang.String |
systemID
The system ID of the XML data where the exception occurred.
|
Constructor and Description |
---|
XMLException(java.lang.Exception e)
Creates a new exception.
|
XMLException(java.lang.String msg)
Creates a new exception.
|
XMLException(java.lang.String systemID,
int lineNr,
java.lang.Exception e)
Creates a new exception.
|
XMLException(java.lang.String systemID,
int lineNr,
java.lang.Exception e,
java.lang.String msg,
boolean reportParams)
Creates a new exception.
|
XMLException(java.lang.String systemID,
int lineNr,
java.lang.String msg)
Creates a new exception.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Cleans up the object when it's destroyed.
|
java.lang.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.
|
java.lang.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(java.io.PrintStream stream)
Dumps the exception stack to an output stream.
|
void |
printStackTrace(java.io.PrintWriter writer)
Dumps the exception stack to a print writer.
|
private static final long serialVersionUID
private java.lang.String systemID
private int lineNr
private java.lang.Exception encapsulatedException
public XMLException(java.lang.String msg)
msg
- the message of the exception.public XMLException(java.lang.Exception e)
e
- the encapsulated exception.public XMLException(java.lang.String systemID, int lineNr, java.lang.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(java.lang.String systemID, int lineNr, java.lang.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(java.lang.String systemID, int lineNr, java.lang.Exception e, java.lang.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 java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public java.lang.String getSystemID()
public int getLineNr()
public java.lang.Exception getException()
public void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in class java.lang.Throwable
writer
- the print writerpublic void printStackTrace(java.io.PrintStream stream)
printStackTrace
in class java.lang.Throwable
stream
- the output streampublic void printStackTrace()
printStackTrace
in class java.lang.Throwable