com.ibm.as400.data
Class XmlException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.as400.data.XmlException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PcmlException

public class XmlException
extends Exception

Thrown when an error is encountered processing XML.

See Also:
Serialized Form

Method Summary
 Exception getException()
          Returns the original exception that caused this XmlException.
 String getLocalizedMessage()
          Returns a localized description of this XmlException.
 String getMessage()
          Returns a description of this XmlException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Returns a localized description of this XmlException.

Overrides:
getLocalizedMessage in class Throwable

getMessage

public String getMessage()
Returns a description of this XmlException.

Overrides:
getMessage in class Throwable

getException

public Exception getException()
Returns the original exception that caused this XmlException. This method returns the same object as Exception.getCause().

Returns:
The exception that caused this instance of XmlException. Note: This may be an instance of PcmlSpecificationException. If this exception was not caused by another exception, null is returned.