FileDocCategorySizeDatePackage
WorkException.javaAPI DocGlassfish v2 API4179Fri May 04 22:35:38 BST 2007javax.resource.spi.work

WorkException

public class WorkException extends javax.resource.ResourceException
A common base class for all Work processing related exceptions.
version
1.0
author
Ram Jeyaraman

Fields 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.
Constructors Summary
public WorkException()
Constructs a new instance with null as its detail message.


                   
       super(); 
public WorkException(String message)
Constructs a new instance with the specified detail message.

param
message the detail message.

        super(message);
    
public WorkException(Throwable cause)
Constructs a new throwable with the specified cause.

param
cause a chained exception of type Throwable.

        super(cause);
    
public WorkException(String message, Throwable cause)
Constructs a new throwable with the specified detail message and cause.

param
message the detail message.
param
cause a chained exception of type Throwable.

        super(message, cause);
    
public WorkException(String message, String errorCode)
Constructs a new throwable with the specified detail message and an error code.

param
message a description of the exception.
param
errorCode a string specifying the vendor specific error code.

        super(message, errorCode);
    
Methods Summary