|
|||||||||
| 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.IllegalArgumentException
org.apache.commons.math.exception.MathIllegalArgumentException
public class MathIllegalArgumentException
Base class for all preconditions violation exceptions.
This class is not intended to be instantiated directly: it should serve
as a base class to create all the exceptions that share the semantics of
the standard IllegalArgumentException, but must also provide a
localized message.
| Field Summary | |
|---|---|
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). |
| Constructor Summary | |
|---|---|
protected |
MathIllegalArgumentException(Localizable specific,
Localizable general,
java.lang.Object... args)
|
protected |
MathIllegalArgumentException(Localizable general,
java.lang.Object... args)
|
| Method Summary | |
|---|---|
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. |
| 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 java.lang.Object[] arguments
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public Localizable getSpecificPattern()
getSpecificPattern in interface MathThrowablepublic Localizable getGeneralPattern()
getGeneralPattern in interface MathThrowablepublic java.lang.Object[] getArguments()
getArguments in interface MathThrowablepublic java.lang.String getMessage(java.util.Locale locale)
getMessage in interface MathThrowablelocale - Locale in which the message should be translated.
public java.lang.String getMessage()
getMessage in interface MathThrowablegetMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in interface MathThrowablegetLocalizedMessage in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||