Class MathIllegalStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.apache.commons.math.exception.MathIllegalStateException
- All Implemented Interfaces:
Serializable
,MathThrowable
- Direct Known Subclasses:
ConvergenceException
,MathInternalError
,NoDataException
Base class for all exceptions that signal a mismatch between the
current state and the user's expectations.
- Since:
- 2.2
- See Also:
-
Constructor Summary
ConstructorDescriptionMathIllegalStateException
(Throwable cause, Localizable general, Object... args) Simple constructor.MathIllegalStateException
(Throwable cause, Localizable specific, Localizable general, Object... args) Simple constructor.MathIllegalStateException
(Localizable general, Object... args) MathIllegalStateException
(Localizable specific, Localizable general, Object... args) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionObject[]
Gets the arguments used to build the message of this throwable.Gets the localizable pattern used to build the general part of the message of this throwable.Gets the message in the system default locale.Gets the message in a conventional US locale.getMessage
(Locale locale) Get the message in a specified locale.Gets the localizable pattern used to build the specific part of the message of this throwable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MathIllegalStateException
Simple constructor.- Parameters:
specific
- Message pattern providing the specific context of the error.general
- Message pattern explaining the cause of the error.args
- Arguments.
-
MathIllegalStateException
public MathIllegalStateException(Throwable cause, Localizable specific, Localizable general, Object... args) Simple constructor.- Parameters:
cause
- root causespecific
- Message pattern providing the specific context of the error.general
- Message pattern explaining the cause of the error.args
- Arguments.
-
MathIllegalStateException
- Parameters:
general
- Message pattern explaining the cause of the error.args
- Arguments.
-
MathIllegalStateException
Simple constructor.- Parameters:
cause
- root causegeneral
- Message pattern explaining the cause of the error.args
- Arguments.
-
-
Method Details
-
getSpecificPattern
Gets the localizable pattern used to build the specific part of the message of this throwable.- Specified by:
getSpecificPattern
in interfaceMathThrowable
- Returns:
- localizable pattern used to build the specific part of the message of this throwable
-
getGeneralPattern
Gets the localizable pattern used to build the general part of the message of this throwable.- Specified by:
getGeneralPattern
in interfaceMathThrowable
- Returns:
- localizable pattern used to build the general part of the message of this throwable
-
getArguments
Gets the arguments used to build the message of this throwable.- Specified by:
getArguments
in interfaceMathThrowable
- Returns:
- the arguments used to build the message of this throwable
-
getMessage
Get the message in a specified locale.- Specified by:
getMessage
in interfaceMathThrowable
- Parameters:
locale
- Locale in which the message should be translated.- Returns:
- the localized message.
-
getMessage
Gets the message in a conventional US locale.- Specified by:
getMessage
in interfaceMathThrowable
- Overrides:
getMessage
in classThrowable
- Returns:
- localized message
-
getLocalizedMessage
Gets the message in the system default locale.- Specified by:
getLocalizedMessage
in interfaceMathThrowable
- Overrides:
getLocalizedMessage
in classThrowable
- Returns:
- localized message
-