javax.resource.spi.work
Class WorkException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.resource.ResourceException (src) 
              extended byjavax.resource.spi.work.WorkException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
WorkCompletedException (src) , WorkRejectedException (src)

public class WorkException
extends ResourceException (src)

Thrown when there is an error handling work.

See Also:
Serialized Form

Field Summary
static java.lang.String INTERNAL
          An internal error
static java.lang.String START_TIMED_OUT
          Expiration before work was started
static java.lang.String TX_CONCURRENT_WORK_DISALLOWED
          Not allowed to do concurrent work on a transaction
static java.lang.String TX_RECREATE_FAILED
          Could not recreate the transaction context
static java.lang.String UNDEFINED
          An undefined error
 
Constructor Summary
WorkException()
          Create an exception.
WorkException(java.lang.String reason)
          Create an exception with a reason.
WorkException(java.lang.String reason, java.lang.String errorCode)
          Create an exception with a reason and an errorCode.
WorkException(java.lang.String reason, java.lang.Throwable throwable)
          Create an exception with a reason and an error.
WorkException(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
 

Field Detail

INTERNAL

public static final java.lang.String INTERNAL
An internal error

See Also:
Constant Field Values (src)

UNDEFINED

public static final java.lang.String UNDEFINED
An undefined error

See Also:
Constant Field Values (src)

START_TIMED_OUT

public static final java.lang.String START_TIMED_OUT
Expiration before work was started

See Also:
Constant Field Values (src)

TX_CONCURRENT_WORK_DISALLOWED

public static final java.lang.String TX_CONCURRENT_WORK_DISALLOWED
Not allowed to do concurrent work on a transaction

See Also:
Constant Field Values (src)

TX_RECREATE_FAILED

public static final java.lang.String TX_RECREATE_FAILED
Could not recreate the transaction context

See Also:
Constant Field Values (src)
Constructor Detail

WorkException

public WorkException()
Create an exception.


WorkException

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

Parameters:
reason - the reason

WorkException

public WorkException(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

WorkException

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

Parameters:
reason - the reason
throwable - the error

WorkException

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

Parameters:
throwable - the error