Copyright @ 2002 SAP. All Rights Reserved.

com.sap.tc.complib.xml
Class ParserException

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

public class ParserException
extends java.lang.RuntimeException

This exception is used to report problems with the instantiation of the XML parser used by XMLRequest.

See Also:
Serialized Form

Constructor Summary
ParserException()
          Create a new ParserException without message.
ParserException(java.lang.String message)
          Create a new ParserException.
ParserException(java.lang.String message, java.lang.Throwable cause)
          Create a new ParserException from an existing exception.
ParserException(java.lang.Throwable cause)
          Create a new ParserException wrapping an existing exception.
 
Method Summary
 java.lang.Throwable getCause()
          Return the embedded exception, if any.
 java.lang.String getMessage()
          Return a detail message for this exception.
 void printStackTrace()
          Prints this exception and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this exception and its backtrace to the given stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this exception and its backtrace to the given stream.
 
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

ParserException

public ParserException()
Create a new ParserException without message.

ParserException

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

ParserException

public ParserException(java.lang.Throwable cause)
Create a new ParserException wrapping an existing exception.

The existing exception will be embedded in the new one, and its message will become the default message for the ParserException.

Parameters:
e - - the exception to be wrapped in this EmbeddedException.

ParserException

public ParserException(java.lang.String message,
                       java.lang.Throwable cause)
Create a new ParserException from an existing exception.

The existing exception will be embedded in the new one, but the new exception will have its own message.

Parameters:
message - - the detail message.
cause - - the exception to be wrapped in this ParserException.
Method Detail

getMessage

public java.lang.String getMessage()
Return a detail message for this exception.

If there is an embedded exception, and if the EmbeddedException has no detail message of its own, this method will return the detail message from the embedded exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
The error or warning message.

getCause

public java.lang.Throwable getCause()
Return the embedded exception, if any.
Returns:
The embedded exception, or null if there is none.

printStackTrace

public void printStackTrace()
Prints this exception and its backtrace to the standard error stream. If the exception wraps another exception (or even a chain of exceptions) the stack traces of these execeptions are printed as well.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this exception and its backtrace to the given stream. If the exception wraps another exception (or even a chain of exceptions) the stack traces of these execeptions are printed as well.
Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - the output stream to use for backtracing.

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this exception and its backtrace to the given stream. If the exception wraps another exception (or even a chain of exceptions) the stack traces of these execeptions are printed as well.
Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - the output stream writer to use for backtracing.

Copyright @ 2002 SAP. All Rights Reserved.