Copyright @ 2002 SAP. All Rights Reserved.

com.sap.tc.complib.xml
Class XMLException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sap.tc.complib.xml.XMLException
All Implemented Interfaces:
java.io.Serializable

public class XMLException
extends java.lang.Exception

Thrown when ann exception occured during parsing of an XML stream.

See Also:
Serialized Form

Constructor Summary
XMLException()
          Create a new ValidationException without message.
XMLException(java.lang.String message)
          Create a new ValidationException.
XMLException(java.lang.String message, java.lang.Throwable cause)
          Create a new ValidationException.
 
Method Summary
 java.lang.Throwable getCause()
          get the excpetion that caused this ValidationException.
 java.lang.String getMessage()
          get the excpetion message String
 void printStackTrace()
          printStackTrace is overwritten, prints both stack traces
 void printStackTrace(java.io.PrintStream ps)
          printStackTrace is overwritten, prints both stack traces
 void printStackTrace(java.io.PrintWriter pw)
          printStackTrace is overwritten, prints both stack traces
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLException

public XMLException()
Create a new ValidationException without message.

XMLException

public XMLException(java.lang.String message)
Create a new ValidationException.
Parameters:
message - the error or warning message.

XMLException

public XMLException(java.lang.String message,
                    java.lang.Throwable cause)
Create a new ValidationException.
Parameters:
message - the error or warning message.
cause - the execption that caused this exception
Method Detail

getCause

public java.lang.Throwable getCause()
get the excpetion that caused this ValidationException.

getMessage

public java.lang.String getMessage()
get the excpetion message String
Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace()
printStackTrace is overwritten, prints both stack traces

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
printStackTrace is overwritten, prints both stack traces

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
ps - print stream to which stack trace is written

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
printStackTrace is overwritten, prints both stack traces

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
pw - print writer to which stack trace is written

Copyright @ 2002 SAP. All Rights Reserved.