com.opensymphony.xwork
Class XworkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.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.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintStream to use for output

printStackTrace

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

Overrides:
printStackTrace in class Throwable
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.

Overrides:
toString in class Throwable
Returns:
a string representation of this Throwable.

XWork Project Page