javax.enterprise.context
Class BusyConversationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.enterprise.context.ContextException
                  extended by javax.enterprise.context.BusyConversationException
All Implemented Interfaces:
Serializable

public class BusyConversationException
extends ContextException

A long running conversation must only be used by one request at the same time! If a parallel 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

Constructor Summary
BusyConversationException()
           
BusyConversationException(String message)
          Creates a new exception with message.
BusyConversationException(String message, Throwable cause)
          Creates a new exception with the given message and throwable cause.
BusyConversationException(Throwable cause)
          Create a new exception with the root cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BusyConversationException

public BusyConversationException()

BusyConversationException

public BusyConversationException(String message)
Creates a new exception with message.

Parameters:
message - message

BusyConversationException

public BusyConversationException(Throwable cause)
Create a new exception with the root cause.

Parameters:
cause - cause of the exception

BusyConversationException

public BusyConversationException(String message,
                                 Throwable cause)
Creates a new exception with the given message and throwable cause.

Parameters:
message - exception message
cause - root cause of the exception


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.