unannoy.util
Class NullArgumentException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IllegalArgumentException
                          |
                          +--unannoy.util.NullArgumentException
All Implemented Interfaces:
java.io.Serializable

public class NullArgumentException
extends java.lang.IllegalArgumentException

An IllegalArgumentException specifically for dealing with the case of arguments which are null (and optionally for Strings, of empty length)

Version:
$Revision: 1.1.1.1 $
$Date: 2003/03/19 15:49:03 $
Author:
Eric Kow (kow at loria point fr)
See Also:
Serialized Form

Constructor Summary
NullArgumentException(java.lang.String argumentName)
           
NullArgumentException(java.lang.String location, java.lang.String argumentName)
           
NullArgumentException(java.lang.String location, java.lang.String argumentName, java.lang.String argumentValue)
          Constructs a NullArgumentException.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullArgumentException

public NullArgumentException(java.lang.String argumentName)
Parameters:
argumentName - the name of the argument which is null

NullArgumentException

public NullArgumentException(java.lang.String location,
                             java.lang.String argumentName)
Parameters:
location - a description of where this exception took place
argumentName - the name of the argument which is null

NullArgumentException

public NullArgumentException(java.lang.String location,
                             java.lang.String argumentName,
                             java.lang.String argumentValue)
Constructs a NullArgumentException. If the value of the argument is null, it gives one message, if it is empty length, it gives another

Parameters:
location - a description of where this exception took place
argumentName - the name or description of the argument
argumentValue - the value of the argument