org.jboss.weld.exceptions
Class NullableDependencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.weld.exceptions.WeldException
                  extended by org.jboss.weld.exceptions.DeploymentException
                      extended by org.jboss.weld.exceptions.NullableDependencyException
All Implemented Interfaces:
Serializable

public class NullableDependencyException
extends DeploymentException

Thrown if an injection point of primitive type resolves to a bean which may be null

Author:
Pete Muir
See Also:
Serialized Form

Constructor Summary
NullableDependencyException(E key, Object... args)
          Creates a new exception with the given localized message key and optional arguments for the message.
NullableDependencyException(Throwable throwable)
          Creates a new exception with the given cause.
 
Method Summary
 
Methods inherited from class org.jboss.weld.exceptions.WeldException
getLocalizedMessage, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

NullableDependencyException

public NullableDependencyException(E key,
                                   Object... args)
Creates a new exception with the given localized message key and optional arguments for the message.

Type Parameters:
E - The enumeration type for the message keys
Parameters:
key - The localized message to use
args - Optional arguments to insert into the message

NullableDependencyException

public NullableDependencyException(Throwable throwable)
Creates a new exception with the given cause.

Parameters:
throwable - The cause of the exception


Copyright © 2013 Seam Framework. All Rights Reserved.