Package javax.enterprise.context
Class BusyConversationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.enterprise.context.ContextException
-
- javax.enterprise.context.BusyConversationException
-
- All Implemented Interfaces:
java.io.Serializable
public class BusyConversationException extends ContextException
A long running conversation must only be used by one request at the same time! If a parallel access to a long running conversation gets detected, this very Exception will be thrown for the new request and the 2nd request will get a fresh Conversation assigned. The customer application may decide to catch this Exception and continue it's work with the new conversation.- Since:
- 1.0 PFD2
- See Also:
Context.get(Contextual, CreationalContext)
,Context.get(Contextual)
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description BusyConversationException()
BusyConversationException(java.lang.String message)
Creates a new exception with message.BusyConversationException(java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the given message and throwable cause.BusyConversationException(java.lang.Throwable cause)
Create a new exception with the root cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BusyConversationException
public BusyConversationException()
-
BusyConversationException
public BusyConversationException(java.lang.String message)
Creates a new exception with message.- Parameters:
message
- message
-
BusyConversationException
public BusyConversationException(java.lang.Throwable cause)
Create a new exception with the root cause.- Parameters:
cause
- cause of the exception
-
BusyConversationException
public BusyConversationException(java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the given message and throwable cause.- Parameters:
message
- exception messagecause
- root cause of the exception
-
-