Package org.apache.xmlbeans
Class XmlException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.xmlbeans.XmlException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
XPath.XPathCompileException
,XPathGenerationException
public class XmlException extends java.lang.Exception
A checked exception that can be thrown while processing, parsing, or compiling XML. May contain any number ofXmlError
objects.- See Also:
XmlError
,XmlRuntimeException
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XmlException(java.lang.String m)
Constructs an XmlException from a message.XmlException(java.lang.String m, java.lang.Throwable t)
Constructs an XmlException from a message and a cause.XmlException(java.lang.String m, java.lang.Throwable t, java.util.Collection<XmlError> errors)
Constructs an XmlException from a message, a cause, and a collection ofXmlErrors
.XmlException(java.lang.String m, java.lang.Throwable t, XmlError error)
Constructs an XmlException from a message, a cause, and anXmlError
.XmlException(java.lang.Throwable t)
Constructs an XmlException from a cause.XmlException(XmlError error)
Constructs an XmlException from anXmlError
.XmlException(XmlRuntimeException xmlRuntimeException)
Constructs an XmlException from anXmlRuntimeException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlError
getError()
Returns the firstXmlErrors
that caused the exception, if any.java.util.Collection<XmlError>
getErrors()
Returns the collection ofXmlErrors
that caused the exception, if any.
-
-
-
Constructor Detail
-
XmlException
public XmlException(java.lang.String m)
Constructs an XmlException from a message.
-
XmlException
public XmlException(java.lang.String m, java.lang.Throwable t)
Constructs an XmlException from a message and a cause.
-
XmlException
public XmlException(java.lang.Throwable t)
Constructs an XmlException from a cause.
-
XmlException
public XmlException(java.lang.String m, java.lang.Throwable t, XmlError error)
Constructs an XmlException from a message, a cause, and anXmlError
.
-
XmlException
public XmlException(java.lang.String m, java.lang.Throwable t, java.util.Collection<XmlError> errors)
Constructs an XmlException from a message, a cause, and a collection ofXmlErrors
.
-
XmlException
public XmlException(XmlRuntimeException xmlRuntimeException)
Constructs an XmlException from anXmlRuntimeException
.
-
-