public class MathIllegalStateException extends IllegalStateException implements MathThrowable
| Modifier and Type | Field and Description |
|---|---|
private 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).
|
| Constructor and Description |
|---|
MathIllegalStateException(Localizable specific,
Localizable general,
Object... args)
Simple constructor.
|
MathIllegalStateException(Localizable general,
Object... args) |
MathIllegalStateException(Throwable cause,
Localizable specific,
Localizable general,
Object... args)
Simple constructor.
|
MathIllegalStateException(Throwable cause,
Localizable general,
Object... args)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getLocalizedMessage()
Gets the message in the system default locale.
|
String |
getMessage()
Gets the message in a conventional US locale.
|
String |
getMessage(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.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprivate static final long serialVersionUID
private final Localizable specific
private final Localizable general
private final Object[] arguments
public MathIllegalStateException(Localizable specific, Localizable general, Object... args)
specific - Message pattern providing the specific context of
the error.general - Message pattern explaining the cause of the error.args - Arguments.public MathIllegalStateException(Throwable cause, Localizable specific, Localizable general, Object... args)
cause - root causespecific - Message pattern providing the specific context of
the error.general - Message pattern explaining the cause of the error.args - Arguments.public MathIllegalStateException(Localizable general, Object... args)
general - Message pattern explaining the cause of the error.args - Arguments.public MathIllegalStateException(Throwable cause, Localizable general, Object... args)
cause - root causegeneral - Message pattern explaining the cause of the error.args - Arguments.public Localizable getSpecificPattern()
getSpecificPattern in interface MathThrowablepublic Localizable getGeneralPattern()
getGeneralPattern in interface MathThrowablepublic Object[] getArguments()
getArguments in interface MathThrowablepublic String getMessage(Locale locale)
getMessage in interface MathThrowablelocale - Locale in which the message should be translated.public String getMessage()
getMessage in interface MathThrowablegetMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in interface MathThrowablegetLocalizedMessage in class ThrowableCopyright (c) 2003-2014 Apache Software Foundation