|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
System.SystemException
System.ArgumentException
public class ArgumentException
The exception that is thrown when one of the arguments provided to a method is not valid.
Constructor Summary | |
---|---|
ArgumentException()
Initializes a new instance of the ArgumentException class. |
|
ArgumentException(java.lang.String message)
Initializes a new instance of the ArgumentException class with a specified error message. |
|
ArgumentException(java.lang.String message,
java.lang.RuntimeException innerException)
Initializes a new instance of the ArgumentException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
|
ArgumentException(java.lang.String message,
java.lang.String paramName)
Initializes a new instance of the ArgumentException class with a specified error message and the name of the parameter that causes this exception. |
Method Summary |
---|
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 |
---|
public ArgumentException()
public ArgumentException(java.lang.String message)
message
- The error message that explains the reason for the exception.public ArgumentException(java.lang.String message, java.lang.RuntimeException innerException)
message
- The error message that explains the reason for the exception.innerException
- The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.public ArgumentException(java.lang.String message, java.lang.String paramName)
message
- The error message that explains the reason for the exception.paramName
- The name of the parameter that caused the current exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |