com.flagstone.transform.exception
Class IllegalArgumentValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.