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:
Serializable

public class ContextNotActiveException
extends ContextException

It is used by the Context interface.

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

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

ContextNotActiveException

public ContextNotActiveException()

ContextNotActiveException

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

Parameters:
message - message

ContextNotActiveException

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

Parameters:
cause - cause of the exception

ContextNotActiveException

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