XmlException Class
- public class XmlException
extends Exception
A checked exception that can be thrown while processing,
parsing, or compiling XML. May contain any number of XmlError
objects.
Related Topics
XmlError
XmlRuntimeException
-
Hierarchy
-
Object
Throwable
Exception
XmlException
-
All Implemented Interfaces
-
Serializable
Methods from java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlException
public XmlException(XmlError
error)
- Constructs an XmlException from an
XmlError
.
XmlException
public XmlException(XmlRuntimeException
xmlRuntimeException)
- Constructs an XmlException from an
XmlRuntimeException
.
XmlException
public XmlException(String
m,
Throwable
t,
XmlError
error)
- Constructs an XmlException from a message, a cause, and an
XmlError
.
XmlException
public XmlException(String
m,
Throwable
t,
Collection
errors)
- Constructs an XmlException from a message, a cause, and a collection of
XmlError
.
XmlException
public XmlException(String
m,
Throwable
t)
- Constructs an XmlException from a message and a cause.
XmlException
public XmlException(String
m)
- Constructs an XmlException from a message.
XmlException
public XmlException(Throwable
t)
- Constructs an XmlException from a cause.
getError() Method
public XmlError
getError()
Returns the first XmlError
that caused the exception, if any.
getErrors() Method
public Collection
getErrors()
Returns the collection of XmlError
that caused the exception, if any.