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