|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.apache.commons.math.exception.MathIllegalStateException
public class MathIllegalStateException
Base class for all exceptions that signal a mismatch between the current state and the user's expectations.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final Localizable specific
private final Localizable general
private final Object[] arguments
Constructor Detail |
---|
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.Method Detail |
---|
public Localizable getSpecificPattern()
getSpecificPattern
in interface MathThrowable
public Localizable getGeneralPattern()
getGeneralPattern
in interface MathThrowable
public Object[] getArguments()
getArguments
in interface MathThrowable
public String getMessage(Locale locale)
getMessage
in interface MathThrowable
locale
- Locale in which the message should be translated.
public String getMessage()
getMessage
in interface MathThrowable
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in interface MathThrowable
getLocalizedMessage
in class Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |