public class ArgumentOutOfRangeException extends ArgumentException
| Constructor and Description |
|---|
ArgumentOutOfRangeException()
Initializes a new instance.
|
ArgumentOutOfRangeException(String paramName)
Initializes a new instance with the name of the parameter that causes this
exception.
|
ArgumentOutOfRangeException(String message,
Exception cause)
Initializes a new instance with a specified error message and the exception that is
the cause of this exception.
|
ArgumentOutOfRangeException(String paramName,
Object actualValue,
String message)
Initializes a new instance with a specified error message, the parameter name, and
the value of the argument.
|
ArgumentOutOfRangeException(String paramName,
String message)
Initializes a new instance with a specified error message and the name of the
parameter that causes this exception.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getActualValue()
Gets the argument value that causes this exception.
|
String |
getMessage()
Returns the detail message string of this throwable.
|
getParamNameaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ArgumentOutOfRangeException()
public ArgumentOutOfRangeException(String paramName)
paramName - The name of the parameter that causes this exception.public ArgumentOutOfRangeException(String message, Exception cause)
message - The error message that explains the reason for this exception.cause - The exception that is the cause of the current exception, or a null
reference if no inner exception is specified.public ArgumentOutOfRangeException(String paramName, String message)
paramName - The name of the parameter that caused the exception.message - The message that describes the error.public ArgumentOutOfRangeException(String paramName, Object actualValue, String message)
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.public String getMessage()
java.lang.ThrowablegetMessage in class ArgumentExceptionThrowable instance
(which may be null).public Object getActualValue()