com.ibm.websphere.asynchbeans
Class WorkContextException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.ws.exception.WsException
-
- com.ibm.websphere.asynchbeans.WorkException
-
- com.ibm.websphere.asynchbeans.WorkContextException
-
- All Implemented Interfaces:
- com.ibm.ws.exception.WsNestedException, java.io.Serializable
public class WorkContextException 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
-
-
Constructor Summary
Constructors Constructor and Description WorkContextException()
Default ConstructorWorkContextException(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 causeWorkContextException(java.lang.Throwable cause)
Constructor with the cause
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getService()
This returns the name of the service causing the problem.int
getType()
This returns whether the problem was pushing or popping the service.
-
-
-
Field Detail
-
BAD_PUSH
public static final int BAD_PUSH
- See Also:
- Constant Field Values
-
BAD_POP
public static final int BAD_POP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkContextException
public WorkContextException()
Default Constructor
-
WorkContextException
public WorkContextException(java.lang.String message)
Constructor with message.- Parameters:
message
-
-
WorkContextException
public WorkContextException(java.lang.Throwable cause)
Constructor with the cause- Parameters:
cause
-
-
WorkContextException
public WorkContextException(java.lang.String message, java.lang.Throwable cause)
Constructor with message and cause- Parameters:
message
-cause
-
-
WorkContextException
public WorkContextException(java.lang.String serv, int typ)
This constructs the exception.- Parameters:
serv
- The service with the problem.typ
- BAD_PUSH or BAD_POP
-
WorkContextException
public WorkContextException(java.lang.String serv, int typ, java.lang.Throwable cause)
This constructs the exception.- Parameters:
serv
- The service with the problem.typ
- BAD_PUSH or BAD_POPcause
- the cause of the exception
-
-