Package com.gargoylesoftware.base.util
Class DetailedNullPointerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.NullPointerException
com.gargoylesoftware.base.util.DetailedNullPointerException
- All Implemented Interfaces:
Serializable
A more detailed version of NullPointerException that contains
information about what argument was null.
- Version:
- $Revision: 1.4 $
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDetailedNullPointerException
(String argumentName) Create an instanceDetailedNullPointerException
(String argumentName, String message) Create an instance -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the argument that was null.Methods inherited from class java.lang.NullPointerException
fillInStackTrace, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
argumentName_
-
-
Constructor Details
-
DetailedNullPointerException
Create an instance- Parameters:
argumentName
- The name of the argument that was nullmessage
- The message to use in the exception
-
DetailedNullPointerException
Create an instance- Parameters:
argumentName
- The name of the argument that was null
-
-
Method Details
-
getArgumentName
Return the name of the argument that was null.- Returns:
- The name of the argument
-