Package com.gargoylesoftware.base.util
Class DetailedIllegalArgumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- com.gargoylesoftware.base.util.DetailedIllegalArgumentException
-
- All Implemented Interfaces:
java.io.Serializable
public class DetailedIllegalArgumentException extends java.lang.IllegalArgumentException
A more detailed version of IllegalArgumentException that contains information about what argument was not legal.- Version:
- $Revision: 1.4 $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
argumentName_
private java.lang.Object
argumentValue_
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DetailedIllegalArgumentException(java.lang.String argumentName, int argumentValue)
Create an instanceDetailedIllegalArgumentException(java.lang.String argumentName, int argumentValue, java.lang.String message)
Create an instanceDetailedIllegalArgumentException(java.lang.String argumentName, java.lang.Object argumentValue)
Create an instanceDetailedIllegalArgumentException(java.lang.String argumentName, java.lang.Object argumentValue, java.lang.String message)
Create an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getArgumentName()
Return the name of the argument that was illegaljava.lang.Object
getArgumentValue()
Return the value of the argument
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
argumentName_
private final java.lang.String argumentName_
-
argumentValue_
private final java.lang.Object argumentValue_
-
-
Constructor Detail
-
DetailedIllegalArgumentException
public DetailedIllegalArgumentException(java.lang.String argumentName, java.lang.Object argumentValue, java.lang.String message)
Create an instance- Parameters:
argumentName
- The name of the argument that was illegalargumentValue
- The illegal valuemessage
- The message to use in the exception
-
DetailedIllegalArgumentException
public DetailedIllegalArgumentException(java.lang.String argumentName, java.lang.Object argumentValue)
Create an instance- Parameters:
argumentName
- The name of the argument that was illegalargumentValue
- The illegal value
-
DetailedIllegalArgumentException
public DetailedIllegalArgumentException(java.lang.String argumentName, int argumentValue, java.lang.String message)
Create an instance- Parameters:
argumentName
- The name of the argument that was illegalargumentValue
- The illegal valuemessage
- A message
-
DetailedIllegalArgumentException
public DetailedIllegalArgumentException(java.lang.String argumentName, int argumentValue)
Create an instance- Parameters:
argumentName
- The name of the argument that was illegalargumentValue
- The illegal value
-
-