|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.xmlbeans.XmlException
public class XmlException
A checked exception that can be thrown while processing,
parsing, or compiling XML. May contain any number of XmlError
objects.
XmlError
,
XmlRuntimeException
,
Serialized FormConstructor Summary | |
---|---|
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 errors)
Constructs an XmlException from a message, a cause, and a collection of XmlErrors . |
|
XmlException(java.lang.String m,
java.lang.Throwable t,
XmlError error)
Constructs an XmlException from a message, a cause, and an XmlError . |
|
XmlException(java.lang.Throwable t)
Constructs an XmlException from a cause. |
|
XmlException(XmlError error)
Constructs an XmlException from an XmlError . |
|
XmlException(XmlRuntimeException xmlRuntimeException)
Constructs an XmlException from an XmlRuntimeException . |
Method Summary | |
---|---|
XmlError |
getError()
Returns the first XmlErrors that caused the exception, if any. |
java.util.Collection |
getErrors()
Returns the collection of XmlErrors that caused the exception, if any. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmlException(java.lang.String m)
public XmlException(java.lang.String m, java.lang.Throwable t)
public XmlException(java.lang.Throwable t)
public XmlException(XmlError error)
XmlError
.
public XmlException(java.lang.String m, java.lang.Throwable t, XmlError error)
XmlError
.
public XmlException(java.lang.String m, java.lang.Throwable t, java.util.Collection errors)
XmlErrors
.
public XmlException(XmlRuntimeException xmlRuntimeException)
XmlRuntimeException
.
Method Detail |
---|
public XmlError getError()
XmlErrors
that caused the exception, if any.
public java.util.Collection getErrors()
XmlErrors
that caused the exception, if any.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |