|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.commons.math.MathException
public class MathException
Base class for commons-math checked exceptions.
Supports nesting, emulating JDK 1.4 behavior if necessary.
| Constructor Summary | |
|---|---|
MathException()
Deprecated. Constructs a new MathException with no
detail message. |
|
MathException(Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new MathException with specified
formatted detail message. |
|
MathException(java.lang.Throwable rootCause)
Deprecated. Constructs a new MathException with specified
nested Throwable root cause. |
|
MathException(java.lang.Throwable rootCause,
Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new MathException with specified
formatted detail message and nested Throwable root cause. |
|
| Method Summary | |
|---|---|
void |
addMessage(Localizable pat,
java.lang.Object... args)
Deprecated. Sets a message. |
java.lang.Object |
getContext(java.lang.String key)
Deprecated. Gets the value associated to the given context key. |
java.util.Set<java.lang.String> |
getContextKeys()
Deprecated. Gets all the keys stored in the exception |
java.lang.String |
getLocalizedMessage()
Deprecated. Gets the message in the system default locale. |
java.lang.String |
getMessage()
Deprecated. Gets the message in a conventional US locale. |
java.lang.String |
getMessage(java.util.Locale locale)
Deprecated. Gets the message in a specified locale. |
void |
printStackTrace()
Deprecated. Prints the stack trace of this exception to the standard error stream. |
void |
printStackTrace(java.io.PrintStream out)
Deprecated. Prints the stack trace of this exception to the specified stream. |
void |
setContext(java.lang.String key,
java.lang.Object value)
Deprecated. Sets the context (key, value) pair. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MathException()
MathException with no
detail message.
public MathException(Localizable pattern,
java.lang.Object... arguments)
MathException with specified
formatted detail message.
Message formatting is delegated to MessageFormat.
pattern - format specifierarguments - format argumentspublic MathException(java.lang.Throwable rootCause)
MathException with specified
nested Throwable root cause.
rootCause - the exception or error that caused this exception
to be thrown.
public MathException(java.lang.Throwable rootCause,
Localizable pattern,
java.lang.Object... arguments)
MathException with specified
formatted detail message and nested Throwable root cause.
Message formatting is delegated to MessageFormat.
rootCause - the exception or error that caused this exception
to be thrown.pattern - format specifierarguments - format arguments| Method Detail |
|---|
public void addMessage(Localizable pat,
java.lang.Object... args)
pat - Message pattern.args - Values for replacing the placeholders in the message
pattern.
public void setContext(java.lang.String key,
java.lang.Object value)
key - Context key (not null).value - Context value.public java.lang.Object getContext(java.lang.String key)
key - Context key.
null if the key does not exist.public java.util.Set<java.lang.String> getContextKeys()
public java.lang.String getMessage(java.util.Locale locale)
locale - Locale in which the message should be translated
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream out)
printStackTrace in class java.lang.Throwableout - the PrintStream to use for output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||