javax.resource.spi
Class CommException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.resource.ResourceException (src) 
              extended byjavax.resource.spi.CommException
All Implemented Interfaces:
java.io.Serializable

public class CommException
extends ResourceException (src)

A CommException indicates error conditions related to failed or interrupted communication with an underlying resource. examples include: communication protocol error or connection loss due to server failure.

See Also:
Serialized Form

Constructor Summary
CommException()
          Create an exception.
CommException(java.lang.String reason)
          Create an exception with a reason.
CommException(java.lang.String reason, java.lang.String errorCode)
          Create an exception with a reason and an errorCode.
CommException(java.lang.String reason, java.lang.Throwable cause)
          Create an exception with a reason and cause.
CommException(java.lang.Throwable cause)
          Create an exception with a cause.
 
Methods inherited from class javax.resource.ResourceException (src)
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

CommException

public CommException()
Create an exception.


CommException

public CommException(java.lang.String reason)
Create an exception with a reason.


CommException

public CommException(java.lang.String reason,
                     java.lang.String errorCode)
Create an exception with a reason and an errorCode.


CommException

public CommException(java.lang.String reason,
                     java.lang.Throwable cause)
Create an exception with a reason and cause.

Parameters:
reason - the reason
cause - the cause

CommException

public CommException(java.lang.Throwable cause)
Create an exception with a cause.

Parameters:
cause - the cause