Top Description Fields Constructors Methods
javax.resource.spi.work

public Class WorkException

extends ResourceException
Class Inheritance
Known Direct Subclasses
javax.resource.spi.work.WorkRejectedException, javax.resource.spi.work.WorkCompletedException

A common base class for all Work processing related exceptions.
Author
Ram Jeyaraman
Version
1.0

Field Summary

Modifier and TypeField and Description
public static final String
INTERNAL

Indicates an internal error condition.

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.

public static final String
TX_RECREATE_FAILED

Indicates a failure in recreating the specified transaction context.

public static final String
UNDEFINED

Undefined error code.

Constructor Summary

AccessConstructor and Description
public
WorkException()

Constructs a new instance with null as its detail message.

public
WorkException(String
the detail message.
message
)

Constructs a new instance with the specified detail message.

public
WorkException(Throwable
a chained exception of type Throwable.
cause
)

Constructs a new throwable with the specified cause.

public
WorkException(String
the detail message.
message
,
Throwable
a chained exception of type Throwable.
cause
)

Constructs a new throwable with the specified detail message and cause.

public
WorkException(String
a description of the exception.
message
,
String
a string specifying the vendor specific error code.
errorCode
)

Constructs a new throwable with the specified detail message and an error code.

Method Summary

Inherited from javax.resource.ResourceException:
getErrorCodegetLinkedExceptiongetMessagesetErrorCodesetLinkedException

Field Detail

INTERNALback to summary
public static final String INTERNAL

Indicates an internal error condition.

START_TIMED_OUTback to summary
public static final String START_TIMED_OUT

Indicates start timeout expiration.

TX_CONCURRENT_WORK_DISALLOWEDback to summary
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.

TX_RECREATE_FAILEDback to summary
public static final String TX_RECREATE_FAILED

Indicates a failure in recreating the specified transaction context.

UNDEFINEDback to summary
public static final String UNDEFINED

Undefined error code.

Constructor Detail

WorkExceptionback to summary
public WorkException()

Constructs a new instance with null as its detail message.

WorkExceptionback to summary
public WorkException(String message)

Constructs a new instance with the specified detail message.

Parameters
message:String

the detail message.

WorkExceptionback to summary
public WorkException(Throwable cause)

Constructs a new throwable with the specified cause.

Parameters
cause:Throwable

a chained exception of type Throwable.

WorkExceptionback to summary
public WorkException(String message, Throwable cause)

Constructs a new throwable with the specified detail message and cause.

Parameters
message:String

the detail message.

cause:Throwable

a chained exception of type Throwable.

WorkExceptionback to summary
public WorkException(String message, String errorCode)

Constructs a new throwable with the specified detail message and an error code.

Parameters
message:String

a description of the exception.

errorCode:String

a string specifying the vendor specific error code.