com.gargoylesoftware.base.util
Class DetailedNullPointerException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.NullPointerException
                  extended bycom.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

Constructor Summary
DetailedNullPointerException(String argumentName)
          Create an instance
DetailedNullPointerException(String argumentName, String message)
          Create an instance
 
Method Summary
 String getArgumentName()
          Return the name of the argument that was null.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetailedNullPointerException

public DetailedNullPointerException(String argumentName,
                                    String message)
Create an instance

Parameters:
argumentName - The name of the argument that was null
message - 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
Method Detail

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.