javax.resource.spi
Class SharingViolationException

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

public class SharingViolationException
extends ResourceException (src)

Thrown when a shared connection is used in an unshareable manner.

See Also:
Serialized Form

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

SharingViolationException

public SharingViolationException()
Create an exception.


SharingViolationException

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

Parameters:
reason - the reason

SharingViolationException

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

Parameters:
reason - the reason
errorCode - the error code

SharingViolationException

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

Parameters:
reason - the reason
throwable - the error

SharingViolationException

public SharingViolationException(java.lang.Throwable throwable)
Create an exception with an error.

Parameters:
throwable - the error