System
Class ArgumentOutOfRangeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by System.SystemException
                  extended by System.ArgumentException
                      extended by System.ArgumentOutOfRangeException
All Implemented Interfaces:
java.io.Serializable

public class ArgumentOutOfRangeException
extends ArgumentException

The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.

Author:
Halofreak1990
See Also:
Serialized Form

Constructor Summary
ArgumentOutOfRangeException()
          Initializes a new instance of the ArgumentOutOfRangeException class.
ArgumentOutOfRangeException(java.lang.String paramName)
          Initializes a new instance of the ArgumentOutOfRangeException class with the name of the parameter that causes this exception.
ArgumentOutOfRangeException(java.lang.String paramName, java.lang.Object actualValue, java.lang.String message)
          Initializes a new instance of the ArgumentOutOfRangeException class with a specified error message, the parameter name, and the value of the argument.
ArgumentOutOfRangeException(java.lang.String message, java.lang.RuntimeException innerException)
          Initializes a new instance of the ArgumentOutOfRangeException class with a specified error message and the exception that is the cause of this exception.
ArgumentOutOfRangeException(java.lang.String paramName, java.lang.String message)
          Initializes a new instance of the ArgumentOutOfRangeException class with a specified error message and the name of the parameter that causes this exception.
 
Method Summary
 java.lang.Object getActualValue()
          Gets the argument value that causes this exception.
 
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

ArgumentOutOfRangeException

public ArgumentOutOfRangeException()
Initializes a new instance of the ArgumentOutOfRangeException class.


ArgumentOutOfRangeException

public ArgumentOutOfRangeException(java.lang.String paramName)
Initializes a new instance of the ArgumentOutOfRangeException class with the name of the parameter that causes this exception.

Parameters:
paramName - The name of the parameter that causes this exception.

ArgumentOutOfRangeException

public ArgumentOutOfRangeException(java.lang.String message,
                                   java.lang.RuntimeException innerException)
Initializes a new instance of the ArgumentOutOfRangeException class with a specified error message and the exception that is the cause of this exception.

Parameters:
message - The error message that explains the reason for this exception.
innerException - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

ArgumentOutOfRangeException

public ArgumentOutOfRangeException(java.lang.String paramName,
                                   java.lang.String message)
Initializes a new instance of the ArgumentOutOfRangeException class with a specified error message and the name of the parameter that causes this exception.

Parameters:
paramName - The name of the parameter that caused the exception.
message - The message that describes the error.

ArgumentOutOfRangeException

public ArgumentOutOfRangeException(java.lang.String paramName,
                                   java.lang.Object actualValue,
                                   java.lang.String message)
Initializes a new instance of the ArgumentOutOfRangeException class with a specified error message, the parameter name, and the value of the argument.

Parameters:
paramName - The name of the parameter that caused the exception.
actualValue - The value of the argument that causes this exception.
message - The message that describes the error.
Method Detail

getActualValue

public java.lang.Object getActualValue()
Gets the argument value that causes this exception.

Returns:
An Object that contains the value of the parameter that caused the current Exception.