org.jboss.weld.exceptions
Class NullInstanceException

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

public class NullInstanceException
extends WeldException

This exception occurs in cases where an object instance was expected, but the reference was null. A typical example is with a producer method that is not allowed to return null.

Author:
David Allen
See Also:
Serialized Form

Constructor Summary
NullInstanceException(E key, Object... args)
          Creates a new exception with the given localized message key and optional arguments for the message.
 
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

NullInstanceException

public NullInstanceException(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


Copyright © 2013 Seam Framework. All Rights Reserved.