junit.extensions.xml
Class XMLException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjunit.extensions.xml.XMLException
All Implemented Interfaces:
java.io.Serializable

public class XMLException
extends java.lang.RuntimeException

This exception is thrown when the XML cannot be parsed properly.

Author:
Kevin Wilson
See Also:
Serialized Form

Field Summary
private  java.lang.Throwable m_cause
          Exception which caused the error.
private  org.w3c.dom.Element m_element
          Element which could not be processed.
private  XMLObjectCache m_properties
          Properties which may have been passed to the element which could not be processed.
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
XMLException(java.lang.String msg)
          Constructor accepting a String message.
XMLException(java.lang.String msg, org.w3c.dom.Element e)
          Constructor accepting a String message.
XMLException(java.lang.String msg, java.lang.Throwable cause, org.w3c.dom.Element element, XMLObjectCache properties)
          Constructor accepting a String message.
 
Method Summary
 org.w3c.dom.Element getElement()
          Get the element which through the exception.
 java.lang.String toString()
          Add context from the element.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_element

private org.w3c.dom.Element m_element
Element which could not be processed.


m_cause

private java.lang.Throwable m_cause
Exception which caused the error.


m_properties

private XMLObjectCache m_properties
Properties which may have been passed to the element which could not be processed.

Constructor Detail

XMLException

public XMLException(java.lang.String msg)
Constructor accepting a String message.

Parameters:
msg - Message of the exception.
See Also:
Throwable.Throwable(String)

XMLException

public XMLException(java.lang.String msg,
                    org.w3c.dom.Element e)
Constructor accepting a String message.

Parameters:
msg - Message of the exception.
e - Element which throw the exception.
See Also:
Throwable.Throwable(String)

XMLException

public XMLException(java.lang.String msg,
                    java.lang.Throwable cause,
                    org.w3c.dom.Element element,
                    XMLObjectCache properties)
Constructor accepting a String message.

Parameters:
msg - Message of the exception.
cause - Exception or error which caused this exception to be thrown.
element - Element which throw the exception.
properties - Properties cache containing the values which were passed to the tag handler.
See Also:
Throwable.Throwable(String)
Method Detail

getElement

public org.w3c.dom.Element getElement()
Get the element which through the exception.

Returns:
Element which through the exception.

toString

public java.lang.String toString()
Add context from the element.

Returns:
String representing the context of the exception.


Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999