Package 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
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:
-
Constructor Summary
ConstructorsConstructorDescriptionNullInstanceException(String message) Creates a new exception with the given localized message. -
Method Summary
Methods inherited from class org.jboss.weld.exceptions.WeldException
getLocalizedMessage, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NullInstanceException
Creates a new exception with the given localized message.- Parameters:
message-
-