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
- public class DetailedNullPointerException
- extends NullPointerException
A more detailed version of NullPointerException that contains
information about what argument was null.
- Version:
- $Revision: 1.5 $
- Author:
- Mike Bowler
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DetailedNullPointerException
public DetailedNullPointerException(String argumentName,
String message)
- Create an instance
- Parameters:
argumentName
- The name of the argument that was nullmessage
- The message to use in the exception
DetailedNullPointerException
public DetailedNullPointerException(String argumentName)
- Create an instance
- Parameters:
argumentName
- The name of the argument that was null
getArgumentName
public String getArgumentName()
- Return the name of the argument that was null.
- Returns:
- The name of the argument
Copyright © 1998-2005 Gargoyle Software Inc.. All Rights Reserved.