@Status(stage=PRODUCTION, unitTests=PARTIAL) @Review(by="Kees Schotanus", at="2009-09-28") public class InvalidArgumentException extends AbstractLocalizedException
IllegalArgumentException
but this is a checked and localizable exception.Constructor and Description |
---|
InvalidArgumentException()
Default constructor creates this exception with a standard, non localized message.
|
InvalidArgumentException(String message)
Constructs an InvalidArgumentException using the supplied message.
|
InvalidArgumentException(String resourceBundleName,
String messageKey,
Object... messageArguments)
Constructs an InvalidArgumentException from the supplied
ResourceBundle name and the supplied
message key and optional arguments. |
InvalidArgumentException(Throwable cause,
String message)
Constructs an InvalidArgumentException using the supplied cause and message.
|
InvalidArgumentException(Throwable cause,
String resourceBundleName,
String messageKey,
Object... messageArguments)
Constructs an InvalidArgumentException from the supplied cause,
ResourceBundle name,
message key and optional arguments. |
getDescription, getMessage, getMessage, getMessageArguments, getMessageKey, getResourceBundleName, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public InvalidArgumentException()
public InvalidArgumentException(String message)
message
- Message with additional information about why the argument is invalid.public InvalidArgumentException(Throwable cause, String message)
cause
- Exception that caused this exception.
message
- Message indicating why the exception occurred.public InvalidArgumentException(String resourceBundleName, String messageKey, Object... messageArguments)
ResourceBundle
name and the supplied
message key and optional arguments.
resourceBundleName
- The name of the ResourceBundle
that contains the localized messages.messageKey
- Key to the resource bundle to retrieve the localized message.messageArguments
- The optional message arguments that will be inserted into the localized message.IllegalArgumentException
- When the supplied resourceBundleName or messageKey is empty.NullPointerException
- When the supplied resourceBundleName or messageKey is null.public InvalidArgumentException(Throwable cause, String resourceBundleName, String messageKey, Object... messageArguments)
ResourceBundle
name,
message key and optional arguments.
cause
- Exception that caused this exception.
resourceBundleName
- The name of the ResourceBundle
that contains the localized messages.messageKey
- Key to the resource bundle to retrieve the localized message.messageArguments
- The message arguments that will be inserted into the localized message.IllegalArgumentException
- When the supplied resourceBundleName or messageKey is empty.NullPointerException
- When the supplied resourceBundleName or messageKey is null.Copyright © 2008–2018. All rights reserved.