Package info.freelibrary.util
Class IllegalArgumentI18nException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- info.freelibrary.util.I18nRuntimeException
-
- info.freelibrary.util.IllegalArgumentI18nException
-
- All Implemented Interfaces:
Serializable
public class IllegalArgumentI18nException extends I18nRuntimeException
An I18n wrapper aroundIllegalArgumentException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalArgumentI18nException(Object aObject)
Creates a newIllegalArgumentI18nException
.IllegalArgumentI18nException(String aBundleName, String aMessageKey, Object... aVarargs)
Creates a newIllegalArgumentI18nException
using a message bundle and key that are different from the default ones.IllegalArgumentI18nException(Throwable aCause, Object aObject)
Creates a newIllegalArgumentI18nException
from the supplied root cause.IllegalArgumentI18nException(Throwable aCause, String aBundleName, String aMessageKey, Object... aVarargs)
Creates a newIllegalArgumentI18nException
from the supplied root cause using a message bundle and key that are different from the default ones.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IllegalArgumentI18nException
public IllegalArgumentI18nException(Object aObject)
Creates a newIllegalArgumentI18nException
.- Parameters:
aObject
- The object that was an illegal argument
-
IllegalArgumentI18nException
public IllegalArgumentI18nException(Throwable aCause, Object aObject)
Creates a newIllegalArgumentI18nException
from the supplied root cause.- Parameters:
aCause
- The root cause of the exceptionaObject
- The object that was an illegal argument
-
IllegalArgumentI18nException
public IllegalArgumentI18nException(String aBundleName, String aMessageKey, Object... aVarargs)
Creates a newIllegalArgumentI18nException
using a message bundle and key that are different from the default ones.- Parameters:
aBundleName
- The name of a different message bundleaMessageKey
- A message (or message key) for the exception messageaVarargs
- Additional details about the illegal argument
-
IllegalArgumentI18nException
public IllegalArgumentI18nException(Throwable aCause, String aBundleName, String aMessageKey, Object... aVarargs)
Creates a newIllegalArgumentI18nException
from the supplied root cause using a message bundle and key that are different from the default ones.- Parameters:
aCause
- The root cause of the exceptionaBundleName
- The name of a different message bundleaMessageKey
- A message (or message key) for the exception messageaVarargs
- Additional details about the illegal argument
-
-