FreeHEP API
Version v1.1

org.freehep.xml.util
Class BadXMLException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.xml.sax.SAXException
                    |
                    +--org.freehep.xml.util.BadXMLException
All Implemented Interfaces:
HasNestedException, Serializable

public class BadXMLException
extends org.xml.sax.SAXException
implements HasNestedException

A SAXException with an optional nested exception

Version:
$Id: BadXMLException.java,v 1.1 2001/02/16 00:46:24 tonyj Exp $
Author:
tonyj
See Also:
Serialized Form

Constructor Summary
BadXMLException(String message)
           
BadXMLException(String message, Throwable detail)
           
 
Method Summary
 String getMessage()
          Get the message text, including the message text if the nested exception
 Throwable getNestedException()
          Get the exception nested inside
 String getSimpleMessage()
          Get the message text, without the message text of the nested exception
 
Methods inherited from class org.xml.sax.SAXException
getException, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadXMLException

public BadXMLException(String message)

BadXMLException

public BadXMLException(String message,
                       Throwable detail)
Method Detail

getNestedException

public Throwable getNestedException()
Description copied from interface: HasNestedException
Get the exception nested inside

Specified by:
getNestedException in interface HasNestedException
Returns:
The nested exception

getMessage

public String getMessage()
Description copied from interface: HasNestedException
Get the message text, including the message text if the nested exception

Specified by:
getMessage in interface HasNestedException
Overrides:
getMessage in class org.xml.sax.SAXException
Returns:
The message corresponding to this exception

getSimpleMessage

public String getSimpleMessage()
Description copied from interface: HasNestedException
Get the message text, without the message text of the nested exception

Specified by:
getSimpleMessage in interface HasNestedException
Returns:
The message corresponding to this exception

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.