javax.resource
Class NotSupportedException

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

public class NotSupportedException
extends ResourceException (src)

A NotSupportedException is thrown to indicate that the callee (resource adapter or application server for system contracts) cannot execute an operation because the operation is not a supported feature. For example, if the transaction support level for a resource adapter is NO_TRANSACTION, an invocation of ManagedConnection.getXAResource method should throw NotSupportedException exception.

See Also:
Serialized Form

Constructor Summary
NotSupportedException()
          Create a not supported exception.
NotSupportedException(java.lang.String reason)
          Create a not supported exception with a reason.
NotSupportedException(java.lang.String reason, java.lang.String errorCode)
          Create a not supported exception with a reason and an errorCode.
NotSupportedException(java.lang.String reason, java.lang.Throwable throwable)
          Create a not supported exception with a reason and an error.
NotSupportedException(java.lang.Throwable throwable)
          Create a not supported exception with an error.
 
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

NotSupportedException

public NotSupportedException()
Create a not supported exception.


NotSupportedException

public NotSupportedException(java.lang.String reason)
Create a not supported exception with a reason.

Parameters:
reason - the reason

NotSupportedException

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

Parameters:
reason - the reason
errorCode - the error code

NotSupportedException

public NotSupportedException(java.lang.String reason,
                             java.lang.Throwable throwable)
Create a not supported exception with a reason and an error.

Parameters:
reason - the reason
throwable - the error

NotSupportedException

public NotSupportedException(java.lang.Throwable throwable)
Create a not supported exception with an error.

Parameters:
throwable - the error