XmlException Class

com.bea.xml
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

Constructor Summary

XmlException(XmlError error)

Constructs an XmlException from an XmlError.
XmlException(XmlRuntimeException xmlRuntimeException)

Constructs an XmlException from an XmlRuntimeException.
XmlException(String m, Throwable t, XmlError error)

Constructs an XmlException from a message, a cause, and an XmlError.
XmlException(String m, Throwable t, Collection errors)

Constructs an XmlException from a message, a cause, and a collection of XmlError.
XmlException(String m, Throwable t)

Constructs an XmlException from a message and a cause.
XmlException(String m)

Constructs an XmlException from a message.
XmlException(Throwable t)

Constructs an XmlException from a cause.
 

Method Summary

public XmlError
getError()
Returns the first XmlError that caused the exception, if any.
public Collection
getErrors()
Returns the collection of XmlError that caused the 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

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.
 

Method Detail

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.