public class

XNIException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.apache.xerces.xni.XNIException
Known Direct Subclasses

Class Overview

This exception is the base exception of all XNI exceptions. It can be constructed with an error message or used to wrap another exception object.

Note: By extending the Java RuntimeException, XNI handlers and components are not required to catch XNI exceptions but may explicitly catch them, if so desired.

Summary

Public Constructors
XNIException(String message)
Constructs an XNI exception with a message.
XNIException(Exception exception)
Constructs an XNI exception with a wrapped exception.
XNIException(String message, Exception exception)
Constructs an XNI exception with a message and wrapped exception.
Public Methods
Exception getException()
Returns the wrapped exception.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public XNIException (String message)

Constructs an XNI exception with a message.

Parameters
message The exception message.

public XNIException (Exception exception)

Constructs an XNI exception with a wrapped exception.

Parameters
exception The wrapped exception.

public XNIException (String message, Exception exception)

Constructs an XNI exception with a message and wrapped exception.

Parameters
message The exception message.
exception The wrapped exception.

Public Methods

public Exception getException ()

Returns the wrapped exception.