com.opensymphony.xwork
Class XworkException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.opensymphony.xwork.XworkException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConfigurationException, ReferenceResolverException, TypeConversionException

public class XworkException
extends RuntimeException

XworkException

Author:
Jason Carreira Created Sep 7, 2003 12:15:03 AM
See Also:
Serialized Form

Constructor Summary
XworkException()
          Constructs a XworkException with no detail message.
XworkException(String s)
          Constructs a XworkException with the specified detail message.
XworkException(String s, Throwable cause)
          Constructs a XworkException with the specified detail message.
XworkException(Throwable cause)
          Constructs a XworkException with no detail message.
 
Method Summary
 Throwable getThrowable()
           
 void printStackTrace(PrintStream s)
          Prints this Throwable and its backtrace to the specified print stream.
 void printStackTrace(PrintWriter s)
          Prints this Throwable and its backtrace to the specified print writer.
 String toString()
          Returns a short description of this throwable object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XworkException

public XworkException()
Constructs a XworkException with no detail message.


XworkException

public XworkException(String s)
Constructs a XworkException with the specified detail message.

Parameters:
s - the detail message.

XworkException

public XworkException(Throwable cause)
Constructs a XworkException with no detail message.


XworkException

public XworkException(String s,
                      Throwable cause)
Constructs a XworkException with the specified detail message.

Parameters:
s - the detail message.
Method Detail

getThrowable

public Throwable getThrowable()

printStackTrace

public void printStackTrace(PrintStream s)
Prints this Throwable and its backtrace to the specified print stream.

Parameters:
s - PrintStream to use for output

printStackTrace

public void printStackTrace(PrintWriter s)
Prints this Throwable and its backtrace to the specified print writer.

Parameters:
s - PrintWriter to use for output
Since:
JDK1.1

toString

public String toString()
Returns a short description of this throwable object. If this Throwable object was created with an error message string, then the result is the concatenation of three strings: If this Throwable object was created with no error message string, then the name of the actual class of this object is returned.

Returns:
a string representation of this Throwable.

XWork Project Page