com.ibm.websphere.asynchbeans

Class WorkContextException

  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.WorkContextException
All implemented interfaces:
com.ibm.ws.exception.WsNestedException, java.io.Serializable

  1. public class WorkContextException
  2. extends WorkException
This exception is thrown when there is a problem with the J2EE context associated with a Work. If it cannot be recreated or removed from a thread then this is thrown to indicate this.
See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
BAD_POP
  1. static
  2. int
BAD_PUSH

Constructor Summary

Constructor and Description
WorkContextException()
Default Constructor
WorkContextException(java.lang.String message)
Constructor with message.
WorkContextException(java.lang.String serv,int typ)
This constructs the exception.
WorkContextException(java.lang.String serv,int typ,java.lang.Throwable cause)
This constructs the exception.
WorkContextException(java.lang.String message,java.lang.Throwable cause)
Constructor with message and cause
WorkContextException(java.lang.Throwable cause)
Constructor with the cause

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getService()
This returns the name of the service causing the problem.
  1. int
getType()
This returns whether the problem was pushing or popping the service.
Methods inherited from class com.ibm.ws.exception.WsException
getCause, initCause
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, 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

BAD_PUSH

  1. public static final int BAD_PUSH
See Also:

BAD_POP

  1. public static final int BAD_POP
See Also:

Constructor Detail

WorkContextException

  1. public WorkContextException()
Default Constructor

WorkContextException

  1. public WorkContextException(java.lang.String message)
Constructor with message.
Parameters:
message -

WorkContextException

  1. public WorkContextException(java.lang.Throwable cause)
Constructor with the cause
Parameters:
cause -

WorkContextException

  1. public WorkContextException(java.lang.String message,
  2. java.lang.Throwable cause)
Constructor with message and cause
Parameters:
message -
cause -

WorkContextException

  1. public WorkContextException(java.lang.String serv,
  2. int typ)
This constructs the exception.
Parameters:
serv - The service with the problem.
typ - BAD_PUSH or BAD_POP

WorkContextException

  1. public WorkContextException(java.lang.String serv,
  2. int typ,
  3. java.lang.Throwable cause)
This constructs the exception.
Parameters:
serv - The service with the problem.
typ - BAD_PUSH or BAD_POP
cause - the cause of the exception

Method Detail

getService

  1. public java.lang.String getService( )
This returns the name of the service causing the problem.

getType

  1. public int getType()
This returns whether the problem was pushing or popping the service.
Returns:
BAD_PUSH or BAD_POP