mulan.core
Class ArgumentNullException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by mulan.core.MulanRuntimeException
                  extended by mulan.core.ArgumentNullException
All Implemented Interfaces:
Serializable

public class ArgumentNullException
extends MulanRuntimeException

This exception is raised when a null reference is passed to a method that does not accept a null reference for an argument.

Author:
Jozef Vilcek
See Also:
Serialized Form

Constructor Summary
ArgumentNullException(String paramName)
          Creates a new instance of ArgumentNullException for specified parameter.
ArgumentNullException(String paramName, String message)
          Creates a new instance of ArgumentNullException with detailed message for specified parameter.
 
Method Summary
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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(String paramName)
Creates a new instance of ArgumentNullException for specified parameter.

Parameters:
paramName - the name of the parameter which caused ArgumentNullException.

ArgumentNullException

public ArgumentNullException(String paramName,
                             String message)
Creates a new instance of ArgumentNullException with detailed message for specified parameter.

Parameters:
message - the detailed message.
paramName - the name of the parameter which caused ArgumentNullException.
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable