jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.db
Class JetWebDBException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by cedar.jetweb.JetWebException
              extended by cedar.jetweb.db.JetWebDBException
All Implemented Interfaces:
java.io.Serializable

public class JetWebDBException
extends JetWebException

Exception thrown by JetWeb DB. May be a wrapper round an SQLException, but may also originate from the DBManager layer.

Version:
$Date: 2005-11-14 14:08:29 +0000 (Mon, 14 Nov 2005) $ $Revision: 973 $
Author:
S. Butterworth
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cedar.jetweb.JetWebException
data, originalException
 
Constructor Summary
JetWebDBException(java.sql.SQLException originalException, java.lang.String sql, java.lang.String data)
          JetWebDBException constructor when SQL errors thrown.
JetWebDBException(java.lang.String message, java.lang.String data)
          JetWebDBException constructor when no sql exception thrown.
 
Method Summary
 java.lang.String getMessage()
          Overrides super to show the sql error details (if relevant), and error data (if supplied)
 
Methods inherited from class cedar.jetweb.JetWebException
getOriginalException, printStackTrace, printStackTrace
 
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
 

Constructor Detail

JetWebDBException

public JetWebDBException(java.sql.SQLException originalException,
                         java.lang.String sql,
                         java.lang.String data)
JetWebDBException constructor when SQL errors thrown.

Parameters:
originalException -
sql - the sql command that resulted in error
data - useful in debugging this error


JetWebDBException

public JetWebDBException(java.lang.String message,
                         java.lang.String data)
JetWebDBException constructor when no sql exception thrown.

Parameters:
message -
data - useful in debugging this error

Method Detail

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 JetWebException
Returns:
error message