- Object
-
- Throwable
-
- Exception
-
- RuntimeException
-
- IllegalArgumentException
-
- ValueOutOfRangeException
-
- All Implemented Interfaces:
Serializable
public class ValueOutOfRangeException extends IllegalArgumentException
Represents an exception when two arguments are the same object.- Since:
- 5.0.0
- Version:
- 5.0.0
- Author:
- William Bittle
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
MUST_BE_GREATER_THAN
Greater thanstatic String
MUST_BE_GREATER_THAN_OR_EQUAL_TO
Greater than or equalstatic String
MUST_BE_LESS_THAN
Less thanstatic String
MUST_BE_LESS_THAN_OR_EQUAL_TO
Less than or equal
-
Constructor Summary
Constructors Constructor Description ValueOutOfRangeException(String argumentName, double value)
Minimal constructor.ValueOutOfRangeException(String argumentName, double value, String boundType, double bound)
Minimal constructor.ValueOutOfRangeException(String argumentName1, double value1, String boundType, String argumentName2, double value2)
Minimal constructor.ValueOutOfRangeException(String argumentName, int value)
Minimal constructor.ValueOutOfRangeException(String argumentName, int value, String boundType, int bound)
Minimal constructor.ValueOutOfRangeException(String argumentName1, int value1, String boundType, String argumentName2, int value2)
Minimal constructor.
-
Method Summary
-
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
MUST_BE_GREATER_THAN
public static final String MUST_BE_GREATER_THAN
Greater than- See Also:
- Constant Field Values
-
MUST_BE_GREATER_THAN_OR_EQUAL_TO
public static final String MUST_BE_GREATER_THAN_OR_EQUAL_TO
Greater than or equal- See Also:
- Constant Field Values
-
MUST_BE_LESS_THAN
public static final String MUST_BE_LESS_THAN
Less than- See Also:
- Constant Field Values
-
MUST_BE_LESS_THAN_OR_EQUAL_TO
public static final String MUST_BE_LESS_THAN_OR_EQUAL_TO
Less than or equal- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValueOutOfRangeException
public ValueOutOfRangeException(String argumentName, double value, String boundType, double bound)
Minimal constructor.- Parameters:
argumentName
- the name of the argumentvalue
- the value givenbound
- the bound for the valueboundType
- the bound type (less than, greater than, etc)
-
ValueOutOfRangeException
public ValueOutOfRangeException(String argumentName, int value, String boundType, int bound)
Minimal constructor.- Parameters:
argumentName
- the name of the argumentvalue
- the value givenbound
- the bound for the valueboundType
- the bound type (less than, greater than, etc)
-
ValueOutOfRangeException
public ValueOutOfRangeException(String argumentName1, double value1, String boundType, String argumentName2, double value2)
Minimal constructor.- Parameters:
argumentName1
- the name of the first argumentvalue1
- the value of the first argumentargumentName2
- the name of the second argumentvalue2
- the value of the second argumentboundType
- the bound type (less than, greater than, etc)
-
ValueOutOfRangeException
public ValueOutOfRangeException(String argumentName1, int value1, String boundType, String argumentName2, int value2)
Minimal constructor.- Parameters:
argumentName1
- the name of the first argumentvalue1
- the value of the first argumentargumentName2
- the name of the second argumentvalue2
- the value of the second argumentboundType
- the bound type (less than, greater than, etc)
-
ValueOutOfRangeException
public ValueOutOfRangeException(String argumentName, double value)
Minimal constructor.- Parameters:
argumentName
- the name of the argumentvalue
- the value given
-
ValueOutOfRangeException
public ValueOutOfRangeException(String argumentName, int value)
Minimal constructor.- Parameters:
argumentName
- the name of the argumentvalue
- the value given
-
-