com.gargoylesoftware.base.util
Class DetailedIllegalArgumentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalArgumentException
                  extended bycom.gargoylesoftware.base.util.DetailedIllegalArgumentException
All Implemented Interfaces:
Serializable

public class DetailedIllegalArgumentException
extends IllegalArgumentException

A more detailed version of IllegalArgumentException that contains information about what argument was not legal.

Version:
$Revision: 1.5 $
Author:
Mike Bowler
See Also:
Serialized Form

Constructor Summary
DetailedIllegalArgumentException(String argumentName, int argumentValue)
          Create an instance
DetailedIllegalArgumentException(String argumentName, int argumentValue, String message)
          Create an instance
DetailedIllegalArgumentException(String argumentName, Object argumentValue)
          Create an instance
DetailedIllegalArgumentException(String argumentName, Object argumentValue, String message)
          Create an instance
 
Method Summary
 String getArgumentName()
          Return the name of the argument that was illegal
 Object getArgumentValue()
          Return the value of the argument
 
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

DetailedIllegalArgumentException

public DetailedIllegalArgumentException(String argumentName,
                                        Object argumentValue,
                                        String message)
Create an instance

Parameters:
argumentName - The name of the argument that was illegal
argumentValue - The illegal value
message - The message to use in the exception

DetailedIllegalArgumentException

public DetailedIllegalArgumentException(String argumentName,
                                        Object argumentValue)
Create an instance

Parameters:
argumentName - The name of the argument that was illegal
argumentValue - The illegal value

DetailedIllegalArgumentException

public DetailedIllegalArgumentException(String argumentName,
                                        int argumentValue,
                                        String message)
Create an instance

Parameters:
argumentName - The name of the argument that was illegal
argumentValue - The illegal value
message - A message

DetailedIllegalArgumentException

public DetailedIllegalArgumentException(String argumentName,
                                        int argumentValue)
Create an instance

Parameters:
argumentName - The name of the argument that was illegal
argumentValue - The illegal value
Method Detail

getArgumentName

public String getArgumentName()
Return the name of the argument that was illegal

Returns:
the name of the argument

getArgumentValue

public Object getArgumentValue()
Return the value of the argument

Returns:
The value of the argument


Copyright © 1998-2005 Gargoyle Software Inc.. All Rights Reserved.