Class 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.4 $
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • argumentName_

      private final String argumentName_
  • Constructor Details

    • 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 Details

    • getArgumentName

      public String getArgumentName()
      Return the name of the argument that was null.
      Returns:
      The name of the argument