# com.bea.xml
XmlRuntimeException Class

public class XmlRuntimeException
extends `RuntimeException`

An unchecked XML exception. May contain any number of `XmlError``` objects.

Related Topics

``XmlError``
``XmlException``

Hierarchy
  `Object`
  `Throwable`
  `Exception`
  `RuntimeException`
  `XmlRuntimeException`

All Implemented Interfaces
  `Serializable`

Direct Known Subclasses
  `SchemaTypeLoaderException`

## Constructor Summary

XmlRuntimeException(`XmlError` error) Constructs an XmlRuntimeException from an XmlError.
XmlRuntimeException(`XmlException` xmlException) Constructs an XmlRuntimeException from an `XmlException```.
XmlRuntimeException(`String` m, `Throwable` t, `XmlError` error) Constructs an XmlRuntimeException from a message, a cause, and an XmlError.
XmlRuntimeException(`String` m, `Throwable` t, `Collection` errors) Constructs an XmlRuntimeException from a message, a cause, and a collection of XmlErrors.
XmlRuntimeException(`String` m, `Throwable` t) Constructs an XmlRuntimeException from a message and a cause.
XmlRuntimeException(`String` m) Constructs an XmlRuntimeException from a message.
XmlRuntimeException(`Throwable` t) Constructs an XmlRuntimeException from a cause.

## Method Summary

`public `XmlError`` | `getError`() Returns the first `XmlError``` that caused this exception, if any.
`public `Collection`` | `getErrors`() Returns the collection of `XmlError``` that caused this exception, if any.

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`

## Constructor Detail

### XmlRuntimeException

    public XmlRuntimeException(XmlError error)

  Constructs an XmlRuntimeException from an XmlError.

### XmlRuntimeException

    public XmlRuntimeException(XmlException xmlException)

  Constructs an XmlRuntimeException from an `XmlException```.

### XmlRuntimeException

    public XmlRuntimeException(String m,
                               Throwable t,
                               XmlError error)

  Constructs an XmlRuntimeException from a message, a cause, and an XmlError.

### XmlRuntimeException

    public XmlRuntimeException(String m,
                               Throwable t,
                               Collection errors)

  Constructs an XmlRuntimeException from a message, a cause, and a collection of XmlErrors.

### XmlRuntimeException

    public XmlRuntimeException(String m,
                               Throwable t)

  Constructs an XmlRuntimeException from a message and a cause.

### XmlRuntimeException

    public XmlRuntimeException(String m)

  Constructs an XmlRuntimeException from a message.

### XmlRuntimeException

    public XmlRuntimeException(Throwable t)

  Constructs an XmlRuntimeException from a cause.

## Method Detail

### getError() Method

    public XmlError getError()

Returns the first `XmlError``` that caused this exception, if any.

### getErrors() Method

    public Collection getErrors()

Returns the collection of `XmlError``` that caused this exception, if any.