public class MathIllegalArgumentException extends java.lang.IllegalArgumentException implements MathThrowable
IllegalArgumentException
, but must also provide a
localized message.Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
arguments
Arguments used to build the message.
|
private Localizable |
general
Pattern used to build the message (general problem description).
|
private static long |
serialVersionUID
Serializable version Id.
|
private Localizable |
specific
Pattern used to build the message (specific context).
|
Modifier | Constructor and Description |
---|---|
protected |
MathIllegalArgumentException(Localizable specific,
Localizable general,
java.lang.Object... args) |
protected |
MathIllegalArgumentException(Localizable general,
java.lang.Object... args) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArguments()
Gets the arguments used to build the message of this throwable.
|
Localizable |
getGeneralPattern()
Gets the localizable pattern used to build the general part of the message of this throwable.
|
java.lang.String |
getLocalizedMessage()
Gets the message in the system default locale.
|
java.lang.String |
getMessage()
Gets the message in a conventional US locale.
|
java.lang.String |
getMessage(java.util.Locale locale)
Get the message in a specified locale.
|
Localizable |
getSpecificPattern()
Gets the localizable pattern used to build the specific part of the message of this throwable.
|
private static final long serialVersionUID
private final Localizable specific
private final Localizable general
private final java.lang.Object[] arguments
protected MathIllegalArgumentException(Localizable specific, Localizable general, java.lang.Object... args)
specific
- Message pattern providing the specific context of
the error.general
- Message pattern explaining the cause of the error.args
- Arguments.protected MathIllegalArgumentException(Localizable general, java.lang.Object... args)
general
- Message pattern explaining the cause of the error.args
- Arguments.public Localizable getSpecificPattern()
getSpecificPattern
in interface MathThrowable
public Localizable getGeneralPattern()
getGeneralPattern
in interface MathThrowable
public java.lang.Object[] getArguments()
getArguments
in interface MathThrowable
public java.lang.String getMessage(java.util.Locale locale)
getMessage
in interface MathThrowable
locale
- Locale in which the message should be translated.public java.lang.String getMessage()
getMessage
in interface MathThrowable
getMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in interface MathThrowable
getLocalizedMessage
in class java.lang.Throwable
Copyright (c) 2003-2016 Apache Software Foundation