com.ibm.websphere.asynchbeans
Class WorkRejectedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.ws.exception.WsException
-
- com.ibm.websphere.asynchbeans.WorkException
-
- com.ibm.websphere.asynchbeans.WorkRejectedException
-
- All Implemented Interfaces:
- com.ibm.ws.exception.WsNestedException, java.io.Serializable
public class WorkRejectedException extends WorkException
This is thrown then the work cannot be started. This normally means the Work timed-out and could not be started before the start timeout parameter milliseconds.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static int
OTHER
Error code is this when a WAS runtime issue prevented the Work from starting.static int
TIMED_OUT
Error code is this when the Work would have started after the maximum interval specified when the startWork method was called.static int
WORKREQUEST_QUEUE_FULL
Error code is this when the Work was unable to start because a thread was not avialable in the thread pool.
-
Constructor Summary
Constructors Constructor and Description WorkRejectedException()
WorkRejectedException(java.lang.String message)
WorkRejectedException(java.lang.String message, java.lang.Throwable cause)
WorkRejectedException(java.lang.Throwable cause)
-
Method Summary
Methods Modifier and Type Method and Description int
getErrorCode()
This returns the error code for why the work was rejected.java.lang.String
getMessage()
void
setErrorCode(int errorCode)
-
-
-
Field Detail
-
OTHER
public static final int OTHER
Error code is this when a WAS runtime issue prevented the Work from starting.- See Also:
- Constant Field Values
-
TIMED_OUT
public static final int TIMED_OUT
Error code is this when the Work would have started after the maximum interval specified when the startWork method was called.- See Also:
- Constant Field Values
-
WORKREQUEST_QUEUE_FULL
public static final int WORKREQUEST_QUEUE_FULL
Error code is this when the Work was unable to start because a thread was not avialable in the thread pool.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkRejectedException
public WorkRejectedException()
-
WorkRejectedException
public WorkRejectedException(java.lang.String message)
-
WorkRejectedException
public WorkRejectedException(java.lang.Throwable cause)
-
WorkRejectedException
public WorkRejectedException(java.lang.String message, java.lang.Throwable cause)
-
-
Method Detail
-
setErrorCode
public void setErrorCode(int errorCode)
-
getErrorCode
public int getErrorCode()
This returns the error code for why the work was rejected. It is either OTHER, TIMED_OUT or WORKREQUEST_QUEUE_FULL
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-