Save This Page
Home » glassfish-v2ur2-b04-src » 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:
    WorkCompletedException, WorkRejectedException

A common base class for all Work processing related exceptions.
Field Summary
public static final  String INTERNAL    Indicates an internal error condition. 
public static final  String UNDEFINED    Undefined error code. 
public static final  String START_TIMED_OUT    Indicates start timeout expiration. 
public static final  String TX_CONCURRENT_WORK_DISALLOWED    Indicates that concurrent work within a transaction is disallowed. That is, there is already another Work instance associated with the specified transaction context. 
public static final  String TX_RECREATE_FAILED    Indicates a failure in recreating the specified transaction context. 
Constructor:
 public WorkException() 
 public WorkException(String message) 
    Constructs a new instance with the specified detail message.
    Parameters:
    message - the detail message.
 public WorkException(Throwable cause) 
    Constructs a new throwable with the specified cause.
    Parameters:
    cause - a chained exception of type Throwable.
 public WorkException(String message,
    Throwable cause) 
    Constructs a new throwable with the specified detail message and cause.
    Parameters:
    message - the detail message.
    cause - a chained exception of type Throwable.
 public WorkException(String message,
    String errorCode) 
    Constructs a new throwable with the specified detail message and an error code.
    Parameters:
    message - a description of the exception.
    errorCode - a string specifying the vendor specific error code.
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:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait