com.ibm.websphere.asynchbeans

Class WorkRejectedException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.ws.exception.WsException
  5. extended bycom.ibm.websphere.asynchbeans.WorkException
  6. extended bycom.ibm.websphere.asynchbeans.WorkRejectedException
All implemented interfaces:
com.ibm.ws.exception.WsNestedException, java.io.Serializable

  1. public class WorkRejectedException
  2. 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

Modifier and Type Field and Description
  1. static
  2. int
OTHER
Error code is this when a WAS runtime issue prevented the Work from starting.
  1. static
  2. int
TIMED_OUT
Error code is this when the Work would have started after the maximum interval specified when the startWork method was called.
  1. static
  2. 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

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

Modifier and Type Method and Description
  1. int
getErrorCode()
This returns the error code for why the work was rejected.
  1. java.lang.String
getMessage()
  1. void
setErrorCode(int errorCode)
Methods inherited from class com.ibm.ws.exception.WsException
getCause, initCause
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

OTHER

  1. public static final int OTHER
Error code is this when a WAS runtime issue prevented the Work from starting.
See Also:

TIMED_OUT

  1. 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:

WORKREQUEST_QUEUE_FULL

  1. 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:

Constructor Detail

WorkRejectedException

  1. public WorkRejectedException()

WorkRejectedException

  1. public WorkRejectedException(java.lang.String message)

WorkRejectedException

  1. public WorkRejectedException(java.lang.Throwable cause)

WorkRejectedException

  1. public WorkRejectedException(java.lang.String message,
  2. java.lang.Throwable cause)

Method Detail

setErrorCode

  1. public void setErrorCode(int errorCode)

getErrorCode

  1. 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

  1. public java.lang.String getMessage( )
Overrides:
getMessage in class java.lang.Throwable