Home » jboss-jca-api-sources » javax » resource » spi » work » [javadoc | source]
javax.resource.spi.work
public class: WorkException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         javax.resource.ResourceException
            javax.resource.spi.work.WorkException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    WorkRejectedException, WorkCompletedException

Thrown when there is an error handling work.
Field Summary
public static final  String INTERNAL    An internal error 
public static final  String UNDEFINED    An undefined error 
public static final  String START_TIMED_OUT    Expiration before work was started 
public static final  String TX_CONCURRENT_WORK_DISALLOWED    Not allowed to do concurrent work on a transaction 
public static final  String TX_RECREATE_FAILED    Could not recreate the transaction context 
Fields inherited from javax.resource.ResourceException:
serialVersionUID
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public WorkException() 
 public WorkException(String reason) 
    Create an exception with a reason.
    Parameters:
    reason - the reason
 public WorkException(Throwable throwable) 
    Create an exception with an error.
    Parameters:
    throwable - the error
 public WorkException(String reason,
    String errorCode) 
    Create an exception with a reason and an errorCode.
    Parameters:
    reason - the reason
    errorCode - the error code
 public WorkException(String reason,
    Throwable throwable) 
    Create an exception with a reason and an error.
    Parameters:
    reason - the reason
    throwable - the error
Methods from javax.resource.ResourceException:
getErrorCode,   getLinkedException,   getMessage,   setErrorCode,   setLinkedException
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait