org.jboss.weld.exceptions
Class NullInstanceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jboss.weld.exceptions.WeldException
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. |
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 useargs
- Optional arguments to insert into the message
Copyright © 2013 Seam Framework. All Rights Reserved.