javax.enterprise.context
Class NonexistentConversationException

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.NonexistentConversationException
All Implemented Interfaces:
Serializable

public class NonexistentConversationException
extends ContextException

If a long running conversation cannot be restored, OWB will assign a fresh conversation and throws this very Exception. The user code is free to catch it and continue his work with this new conversation.

Since:
1.0 PFD2
See Also:
Context.get(Contextual, CreationalContext), Context.get(Contextual), Serialized Form

Constructor Summary
NonexistentConversationException()
           
NonexistentConversationException(String message)
          Creates a new exception with message.
NonexistentConversationException(String message, Throwable cause)
          Creates a new exception with the given message and throwable cause.
NonexistentConversationException(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

NonexistentConversationException

public NonexistentConversationException()

NonexistentConversationException

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

Parameters:
message - message

NonexistentConversationException

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

Parameters:
cause - cause of the exception

NonexistentConversationException

public NonexistentConversationException(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.