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:
Serializable
A more detailed version of IllegalArgumentException that contains
information about what argument was not legal.
- Version:
- $Revision: 1.4 $
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDetailedIllegalArgumentException
(String argumentName, int argumentValue) Create an instanceDetailedIllegalArgumentException
(String argumentName, int argumentValue, String message) Create an instanceDetailedIllegalArgumentException
(String argumentName, Object argumentValue) Create an instanceDetailedIllegalArgumentException
(String argumentName, Object argumentValue, String message) Create an instance -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the argument that was illegalReturn the value of the argumentMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
argumentName_
-
argumentValue_
-
-
Constructor Details
-
DetailedIllegalArgumentException
Create an instance- Parameters:
argumentName
- The name of the argument that was illegalargumentValue
- The illegal valuemessage
- The message to use in the exception
-
DetailedIllegalArgumentException
Create an instance- Parameters:
argumentName
- The name of the argument that was illegalargumentValue
- The illegal value
-
DetailedIllegalArgumentException
Create an instance- Parameters:
argumentName
- The name of the argument that was illegalargumentValue
- The illegal valuemessage
- A message
-
DetailedIllegalArgumentException
Create an instance- Parameters:
argumentName
- The name of the argument that was illegalargumentValue
- The illegal value
-
-
Method Details
-
getArgumentName
Return the name of the argument that was illegal- Returns:
- the name of the argument
-
getArgumentValue
Return the value of the argument- Returns:
- The value of the argument
-