com.flagstone.transform.exception
Class IllegalArgumentValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.flagstone.transform.exception.IllegalArgumentValueException
- All Implemented Interfaces:
- Serializable
public final class IllegalArgumentValueException
- extends IllegalArgumentException
IllegalArgumentValueException is thrown when a value is used that is not
a member of the expected set.
- See Also:
- Serialized Form
|
Constructor Summary |
IllegalArgumentValueException(int[] set,
int value)
Creates an IllegalArgumentValueException with the set of expected values
and the actual value used. |
|
Method Summary |
int |
getActual()
Get the actual value that triggered the exception. |
int[] |
getExpected()
Get the set of expected values. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
IllegalArgumentValueException
public IllegalArgumentValueException(int[] set,
int value)
- Creates an IllegalArgumentValueException with the set of expected values
and the actual value used.
- Parameters:
set - the set of expected values.value - the actual value used.
getExpected
public int[] getExpected()
- Get the set of expected values.
- Returns:
- a copy of the expected values.
getActual
public int getActual()
- Get the actual value that triggered the exception.
- Returns:
- the actual value used.
Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.