A checked exception that can be thrown while processing,
parsing, or compiling XML. May contain any number of
objects.
| Constructor: |
public XmlException(String m) {
super( m );
}
Constructs an XmlException from a message. |
public XmlException(Throwable t) {
super( t );
}
Constructs an XmlException from a cause. |
public XmlException(XmlError error) {
this( error.toString(), null, error );
}
Constructs an XmlException from an XmlError . |
public XmlException(XmlRuntimeException xmlRuntimeException) {
super(
xmlRuntimeException.getMessage(), xmlRuntimeException.getCause() );
Collection errors = xmlRuntimeException.getErrors();
if (errors != null)
_errors = Collections.unmodifiableList( new ArrayList( errors ) );
}
|
public XmlException(String m,
Throwable t) {
super( m, t );
}
Constructs an XmlException from a message and a cause. |
public XmlException(String m,
Throwable t,
XmlError error) {
this( m, t, Collections.singletonList( error ) );
}
Constructs an XmlException from a message, a cause, and an XmlError . |
public XmlException(String m,
Throwable t,
Collection errors) {
super( m, t );
if (errors != null)
_errors = Collections.unmodifiableList( new ArrayList( errors ) );
}
Constructs an XmlException from a message, a cause, and a collection of XmlErrors . |