com.cafesoft.core.message
Class ConnectionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.cafesoft.core.exception.NestedException
                    |
                    +--com.cafesoft.core.message.ConnectionException
All Implemented Interfaces:
Serializable

public class ConnectionException
extends NestedException

Thrown when an error occurs on the connection.

Since:
4/1/02
See Also:
Serialized Form

Field Summary
protected  Connection connection
          The connection that caused the exception
 
Constructor Summary
ConnectionException()
          Construct a new ConnectionException with no other information.
ConnectionException(String message)
          Construct a new ConnectionException for the specified message.
ConnectionException(String message, Connection connection)
          Construct a new ConnectionException for the specified message and connection.
ConnectionException(String message, Throwable cause, Connection connection)
          Construct a new ConnectionException for the specified message throwable, and connection
ConnectionException(Throwable throwable)
          Construct a new ConnectionException for the specified throwable.
ConnectionException(Throwable cause, Connection connection)
          Construct a new ConnectionException for the specified throwable and connection.
 
Method Summary
 Connection getConnection()
          Returns the connection that the exception was thrown for.
 
Methods inherited from class com.cafesoft.core.exception.NestedException
getCause, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connection

protected Connection connection
The connection that caused the exception

Constructor Detail

ConnectionException

public ConnectionException()
Construct a new ConnectionException with no other information.


ConnectionException

public ConnectionException(String message)
Construct a new ConnectionException for the specified message.

Parameters:
message - message describing this exception

ConnectionException

public ConnectionException(String message,
                           Connection connection)
Construct a new ConnectionException for the specified message and connection.

Parameters:
message - message describing this exception
connection - the connection the exception was thrown on

ConnectionException

public ConnectionException(Throwable throwable)
Construct a new ConnectionException for the specified throwable.

Parameters:
throwable - throwable that caused this exception

ConnectionException

public ConnectionException(Throwable cause,
                           Connection connection)
Construct a new ConnectionException for the specified throwable and connection.

Parameters:
cause - throwable that caused this exception
connection - the connection the exception was thrown on

ConnectionException

public ConnectionException(String message,
                           Throwable cause,
                           Connection connection)
Construct a new ConnectionException for the specified message throwable, and connection

Parameters:
message - message describing this exception
cause - throwable that caused this exception
connection - the connection the exception was thrown on
Method Detail

getConnection

public Connection getConnection()
Returns the connection that the exception was thrown for.

Returns:
the connection that the exception was thrown for


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.