jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb
Class JetWebException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by cedar.jetweb.JetWebException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JetWebDBException, JetWebFitException, JetWebHTMLException, JetWebPlotException, JetWebServletException, JetWebXMLException, JobRequestException, ParameterNotFoundException

public class JetWebException
extends java.lang.Exception

Generic exception thrown by JetWeb application. This exception originates from the JetWeb control layer. May be a wrapper round another exception.

Version:
$Date: 2005-10-24 10:16:06 +0100 (Mon, 24 Oct 2005) $ $Revision: 959 $
Author:
S. Butterworth
See Also:
Serialized Form

Field Summary
protected  java.lang.String data
           
protected  java.lang.Exception originalException
           
 
Constructor Summary
JetWebException(java.lang.Exception originalException)
          JetWebException constructor wrapping underlying exception.
JetWebException(java.lang.Exception originalException, java.lang.String msg)
          JetWebException constructor wrapping underlying exception.
JetWebException(java.lang.String message, java.lang.String datain)
          JetWebException constructor when no underlying exception thrown.
 
Method Summary
 java.lang.String getMessage()
          Overrides super to show the sql error details (if relevant), and error data (if supplied)
 java.lang.Exception getOriginalException()
          gets the original exception this exception wraps
 void printStackTrace(java.io.PrintStream s)
          This overrides super to print the original exception stack trace, if there is one.
 void printStackTrace(java.io.PrintWriter s)
          This overrides super to print the original exception stack trace, if there is one.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected java.lang.String data

originalException

protected java.lang.Exception originalException
Constructor Detail

JetWebException

public JetWebException(java.lang.Exception originalException)
JetWebException constructor wrapping underlying exception.

Parameters:
originalException -


JetWebException

public JetWebException(java.lang.Exception originalException,
                       java.lang.String msg)
JetWebException constructor wrapping underlying exception.

Parameters:
originalException -
msg -


JetWebException

public JetWebException(java.lang.String message,
                       java.lang.String datain)
JetWebException constructor when no underlying exception thrown.

Parameters:
message -
data - useful in debugging this error

Method Detail

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
This overrides super to print the original exception stack trace, if there is one. The message and stack trace can be obtained from it.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
PrintWriter -


printStackTrace

public void printStackTrace(java.io.PrintStream s)
This overrides super to print the original exception stack trace, if there is one. The message and stack trace can be obtained from it.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
PrintStream -


getMessage

public java.lang.String getMessage()
Overrides super to show the sql error details (if relevant), and error data (if supplied)

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


getOriginalException

public java.lang.Exception getOriginalException()
gets the original exception this exception wraps

Returns:
exception