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

WorkRejectedException

public class WorkRejectedException extends WorkException
This exception is thrown by a WorkManager to indicate that a submitted Work instance has been rejected. The rejection could be due to internal factors or start timeout expiration.

This could be thrown only before the execution of a Work instance starts (that is, before a thread has been allocated for Work execution).

An associated error code indicates the nature of the error condition. Possible error codes are WorkException.START_TIMED_OUT, WorkException.INTERNAL or WorkException.UNDEFINED.

version
1.0
author
Ram Jeyaraman

Fields Summary
Constructors Summary
public WorkRejectedException()
Constructs a new instance with null as its detail message.

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

param
message the detail message.

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

param
cause a chained exception of type Throwable.

	super(cause);
    
public WorkRejectedException(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 WorkRejectedException(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