| java.lang.Object java.lang.Throwable java.lang.Exception net.n3.nanoxml.XMLException
All known Subclasses: net.n3.nanoxml.XMLParseException, net.n3.nanoxml.XMLValidationException,
XMLException | public class XMLException extends Exception (Code) | | An XMLException is thrown when an exception occurred while processing the
XML data.
author: Marc De Scheemaecker version: $Name: RELEASE_2_2_1 $, $Revision: 1.4 $ |
Method Summary | |
protected void | finalize() Cleans up the object when it's destroyed. | public Exception | getException() Returns the encapsulated exception, or null if no exception is
encapsulated. | public int | getLineNr() Returns the line number in the XML data where the exception occurred. | public String | getSystemID() Returns the system ID of the XML data where the exception occurred. | public void | printStackTrace(PrintWriter writer) Dumps the exception stack to a print writer. | public void | printStackTrace(PrintStream stream) Dumps the exception stack to an output stream. | public void | printStackTrace() Dumps the exception stack to System.err. | public String | toString() Returns a string representation of the exception. |
XMLException | public XMLException(String msg)(Code) | | Creates a new exception.
Parameters: msg - the message of the exception. |
XMLException | public XMLException(Exception e)(Code) | | Creates a new exception.
Parameters: e - the encapsulated exception. |
XMLException | public XMLException(String systemID, int lineNr, Exception e)(Code) | | Creates a new exception.
Parameters: systemID - the system ID of the XML data where the exceptionoccurred Parameters: lineNr - the line number in the XML data where the exceptionoccurred. Parameters: e - the encapsulated exception. |
XMLException | public XMLException(String systemID, int lineNr, String msg)(Code) | | Creates a new exception.
Parameters: systemID - the system ID of the XML data where the exceptionoccurred Parameters: lineNr - the line number in the XML data where the exceptionoccurred. Parameters: msg - the message of the exception. |
XMLException | public XMLException(String systemID, int lineNr, Exception e, String msg, boolean reportParams)(Code) | | Creates a new exception.
Parameters: systemID - the system ID from where the data came Parameters: lineNr - the line number in the XML data where the exceptionoccurred. Parameters: e - the encapsulated exception. Parameters: msg - the message of the exception. Parameters: reportParams - true if the systemID, lineNr and e params need to beappended to the message |
finalize | protected void finalize() throws Throwable(Code) | | Cleans up the object when it's destroyed.
|
getException | public Exception getException()(Code) | | Returns the encapsulated exception, or null if no exception is
encapsulated.
|
getLineNr | public int getLineNr()(Code) | | Returns the line number in the XML data where the exception occurred.
If there is no line number known, -1 is returned.
|
getSystemID | public String getSystemID()(Code) | | Returns the system ID of the XML data where the exception occurred.
If there is no system ID known, null is returned.
|
printStackTrace | public void printStackTrace(PrintWriter writer)(Code) | | Dumps the exception stack to a print writer.
Parameters: writer - the print writer |
printStackTrace | public void printStackTrace(PrintStream stream)(Code) | | Dumps the exception stack to an output stream.
Parameters: stream - the output stream |
printStackTrace | public void printStackTrace()(Code) | | Dumps the exception stack to System.err.
|
toString | public String toString()(Code) | | Returns a string representation of the exception.
|
|
|