Package xml
Class XmlParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
xml.XmlParserException
- All Implemented Interfaces:
java.io.Serializable
public class XmlParserException
extends java.lang.RuntimeException
This exception is thrown when something goes wrong during the parsing of the XML file.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description XmlParserException(java.lang.String message)
Construct this exception with a message.XmlParserException(java.lang.String message, java.lang.Throwable cause)
Construct this exception with a message and an inner exception.XmlParserException(java.lang.Throwable cause)
Construct this exception with an inner exception. -
Method Summary
Modifier and Type Method Description void
addToTrace(org.w3c.dom.Element element)
Add an XML element to the trace of where the error occurred.java.lang.String
toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
XmlParserException
public XmlParserException(java.lang.Throwable cause)Construct this exception with an inner exception.- Parameters:
cause
- The inner exception.
-
XmlParserException
public XmlParserException(java.lang.String message)Construct this exception with a message.- Parameters:
message
- The error message.
-
XmlParserException
public XmlParserException(java.lang.String message, java.lang.Throwable cause)Construct this exception with a message and an inner exception.- Parameters:
message
- The error message.cause
- The inner exception.
-
-
Method Details
-
addToTrace
public void addToTrace(org.w3c.dom.Element element)Add an XML element to the trace of where the error occurred. This element should be an ancestor of the last element to be added to the trace.- Parameters:
element
- The XML element to add to the trace.
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Throwable
-