org.objectweb.cjdbc.common.exceptions
Class BadConnectionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.objectweb.cjdbc.common.exceptions.CJDBCException
              extended byorg.objectweb.cjdbc.common.exceptions.BadConnectionException
All Implemented Interfaces:
java.io.Serializable

public class BadConnectionException
extends CJDBCException

A BadConnectionException is thrown when a connection fails the validity test.

Version:
1.0
Author:
Emmanuel Cecchet
See Also:
DatabaseBackend.isValidConnection(java.sql.Connection), Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class org.objectweb.cjdbc.common.exceptions.CJDBCException
cause
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
BadConnectionException(java.lang.String message, java.lang.Throwable cause)
          Creates a new BadConnectionException instance.
BadConnectionException(java.lang.Throwable cause)
          Creates a new BadConnectionException instance.
 
Methods inherited from class org.objectweb.cjdbc.common.exceptions.CJDBCException
fillInStackTrace, getCause, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Throwable
getLocalizedMessage, initCause, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

BadConnectionException

public BadConnectionException(java.lang.Throwable cause)
Creates a new BadConnectionException instance.

Parameters:
cause - the root cause

BadConnectionException

public BadConnectionException(java.lang.String message,
                              java.lang.Throwable cause)
Creates a new BadConnectionException instance.

Parameters:
message - the error message
cause - the root cause


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.