com.ibm.cics.core.comm
Class ConnectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.cics.core.comm.ConnectionException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AuthenticationException, ConnectionCancelledException, DisconnectVetoedException, ZOSFileNotFoundException, ZOSPermissionDeniedException

public class ConnectionException
extends java.lang.Exception

Superclass of all exceptions that reflect an error in an attempt to use an IConnection.

See Also:
Serialized Form

Nested Class Summary
static class ConnectionException.Type
          Deprecated. Clients should use subclasses of ConnectionException to give specific exception behaviour, rather than relying on this type enum.
 
Constructor Summary
ConnectionException(java.lang.Exception ex)
          Constructor supplying a cause exception
ConnectionException(java.lang.String message)
          Constructor supplying a message
ConnectionException(java.lang.String message, java.lang.Throwable ex)
          Constructor specifying a message and a cause.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
          Deprecated. no longer used.
 ConnectionConfiguration getConfiguration()
          Deprecated. no longer used
 ConnectionException.Type getExceptionType()
          Deprecated. the type is no longer used. Problems should be reflected by the cause exception.
 boolean hasConfiguration()
          Deprecated. 
 void setConfiguration(ConnectionConfiguration config)
          Deprecated. no longer used
 void setExceptionType(ConnectionException.Type type)
          Deprecated. no longer used. ConnectionExceptions should use the underlying cause to reflect their type.
 
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

ConnectionException

public ConnectionException(java.lang.String message)
Constructor supplying a message

Parameters:
message - a message explaining the nature of the exception.

ConnectionException

public ConnectionException(java.lang.Exception ex)
Constructor supplying a cause exception

Parameters:
ex - an exception representing the underlying cause of this connection exception

ConnectionException

public ConnectionException(java.lang.String message,
                           java.lang.Throwable ex)
Constructor specifying a message and a cause.

Parameters:
message - a message explaining the nature of the exception.
ex - an exception representing the underlying cause of this connection exception
Method Detail

getAttributes

@Deprecated
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Deprecated. no longer used.

Return attributes associated with this exception.

Returns:
a Map of attributes associated with this exception.

setExceptionType

@Deprecated
public void setExceptionType(ConnectionException.Type type)
Deprecated. no longer used. ConnectionExceptions should use the underlying cause to reflect their type.

Set the type of this exception.

Parameters:
type - the type of this exception

getExceptionType

@Deprecated
public ConnectionException.Type getExceptionType()
Deprecated. the type is no longer used. Problems should be reflected by the cause exception.

Get the type of this ConnectionException. The type is no longer used.

Returns:
the type of this exception.

getConfiguration

@Deprecated
public ConnectionConfiguration getConfiguration()
Deprecated. no longer used

Gets the ConnectionConfiguration in use by the connection that generated this exception.

Returns:
the configuration in use by the connection that generated this exception

setConfiguration

@Deprecated
public void setConfiguration(ConnectionConfiguration config)
Deprecated. no longer used

Sets the ConnectionConfiguration in use by the connection that generated this exception.

Parameters:
config - the configuration in use by the connection that generated this exception

hasConfiguration

@Deprecated
public boolean hasConfiguration()
Deprecated. 

Returns:
whether or not the ConnectionException has had a ConnectionConfiguration assocaited with it.


Copyright © 2013 IBM Corp. All Rights Reserved.