System
Class ArgumentNullException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by System.SystemException
                  extended by System.ArgumentException
                      extended by System.ArgumentNullException
All Implemented Interfaces:
java.io.Serializable

public class ArgumentNullException
extends ArgumentException

The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

Author:
Halofreak1990
See Also:
Serialized Form

Constructor Summary
ArgumentNullException()
          Initializes a new instance of the ArgumentNullException class.
ArgumentNullException(java.lang.String paramName)
          Initializes a new instance of the ArgumentNullException class with the name of the parameter that causes this exception.
ArgumentNullException(java.lang.String paramName, java.lang.String message)
          Initializes an instance of the ArgumentNullException class with a specified error message and the name of the parameter that causes this exception.
 
Method Summary
 
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

ArgumentNullException

public ArgumentNullException()
Initializes a new instance of the ArgumentNullException class.


ArgumentNullException

public ArgumentNullException(java.lang.String paramName)
Initializes a new instance of the ArgumentNullException class with the name of the parameter that causes this exception.

Parameters:
paramName - The name of the parameter that caused the exception.

ArgumentNullException

public ArgumentNullException(java.lang.String paramName,
                             java.lang.String message)
Initializes an instance of the ArgumentNullException class with a specified error message and the name of the parameter that causes this exception.

Parameters:
paramName - The name of the parameter that caused the exception.
message - A message that describes the error.