org.jcreme.sql
Class ConnectionLostException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended byorg.jcreme.sql.ConnectionLostException
All Implemented Interfaces:
java.io.Serializable

public class ConnectionLostException
extends java.sql.SQLException

This class enables to precise the nature of an SQLException. When a loss of connection is detected, this class enables to report it and eventually handle it.

Version:
$Revision: 1.1 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
ConnectionLostException(java.lang.String msg)
          Constructs an instance of ConnectionLostException with the specified detail message.
ConnectionLostException(java.lang.String reason, java.lang.String sqlState, int vendorCode)
          Creates a new ConnectionLostException.
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionLostException

public ConnectionLostException(java.lang.String reason,
                               java.lang.String sqlState,
                               int vendorCode)
Creates a new ConnectionLostException.

Parameters:
reason - a description of the exception.
sqlState - an XOPEN or SQL 99 code identifying the exception
vendorCode - a database vendor-specific exception code

ConnectionLostException

public ConnectionLostException(java.lang.String msg)
Constructs an instance of ConnectionLostException with the specified detail message.

Parameters:
msg - the detail message.


Copyright 2006 null. All Rights Reserved.