javax.enterprise.context
Class ContextNotActiveException

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.ContextNotActiveException
All Implemented Interfaces:
java.io.Serializable

public class ContextNotActiveException
extends ContextException

A ContextNotActiveException is thrown if at a particular point in the execution of the program the context is inactive with respect to the current thread. When the context is inactive, any invocation of the get() from the current thread upon the Context object for that scope results in a ContextNotActiveException.

Author:
Pete Muir, Shane Bryzak
See Also:
Serialized Form

Constructor Summary
ContextNotActiveException()
           
ContextNotActiveException(java.lang.String message)
           
ContextNotActiveException(java.lang.String message, java.lang.Throwable cause)
           
ContextNotActiveException(java.lang.Throwable 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

ContextNotActiveException

public ContextNotActiveException()

ContextNotActiveException

public ContextNotActiveException(java.lang.String message)

ContextNotActiveException

public ContextNotActiveException(java.lang.Throwable cause)

ContextNotActiveException

public ContextNotActiveException(java.lang.String message,
                                 java.lang.Throwable cause)


Copyright © 2008-2009. All Rights Reserved.