|
||||||||||
| 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
org.apache.commons.math.MathRuntimeException
public class MathRuntimeException
Base class for commons-math unchecked exceptions.
| Constructor Summary | |
|---|---|
MathRuntimeException(Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new MathRuntimeException with specified
formatted detail message. |
|
MathRuntimeException(java.lang.Throwable rootCause)
Deprecated. Constructs a new MathRuntimeException with specified
nested Throwable root cause. |
|
MathRuntimeException(java.lang.Throwable rootCause,
Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new MathRuntimeException with specified
formatted detail message and nested Throwable root cause. |
|
| Method Summary | |
|---|---|
void |
addMessage(Localizable pat,
java.lang.Object... args)
Deprecated. Sets a message. |
static java.lang.ArithmeticException |
createArithmeticException(Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new ArithmeticException with specified formatted detail message. |
static java.lang.ArrayIndexOutOfBoundsException |
createArrayIndexOutOfBoundsException(Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new ArrayIndexOutOfBoundsException with specified formatted detail message. |
static java.util.ConcurrentModificationException |
createConcurrentModificationException(Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new ConcurrentModificationException with specified formatted detail message. |
static java.io.EOFException |
createEOFException(Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new EOFException with specified formatted detail message. |
static java.lang.IllegalArgumentException |
createIllegalArgumentException(Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new IllegalArgumentException with specified formatted detail message. |
static java.lang.IllegalArgumentException |
createIllegalArgumentException(java.lang.Throwable rootCause)
Deprecated. Constructs a new IllegalArgumentException with specified nested
Throwable root cause. |
static java.lang.IllegalStateException |
createIllegalStateException(Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new IllegalStateException with specified formatted detail message. |
static java.lang.RuntimeException |
createInternalError(java.lang.Throwable cause)
Deprecated. Create an RuntimeException for an internal error. |
static java.io.IOException |
createIOException(java.lang.Throwable rootCause)
Deprecated. Constructs a new IOException with specified nested
Throwable root cause. |
static java.util.NoSuchElementException |
createNoSuchElementException(Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new NoSuchElementException with specified formatted detail message. |
static java.text.ParseException |
createParseException(int offset,
Localizable pattern,
java.lang.Object... arguments)
Deprecated. Constructs a new ParseException with specified
formatted detail 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 MathRuntimeException(Localizable pattern,
java.lang.Object... arguments)
MathRuntimeException with specified
formatted detail message.
Message formatting is delegated to MessageFormat.
pattern - format specifierarguments - format argumentspublic MathRuntimeException(java.lang.Throwable rootCause)
MathRuntimeException with specified
nested Throwable root cause.
rootCause - the exception or error that caused this exception
to be thrown.
public MathRuntimeException(java.lang.Throwable rootCause,
Localizable pattern,
java.lang.Object... arguments)
MathRuntimeException 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
public static java.lang.ArithmeticException createArithmeticException(Localizable pattern,
java.lang.Object... arguments)
ArithmeticException with specified formatted detail message.
Message formatting is delegated to MessageFormat.
pattern - format specifierarguments - format arguments
public static java.lang.ArrayIndexOutOfBoundsException createArrayIndexOutOfBoundsException(Localizable pattern,
java.lang.Object... arguments)
ArrayIndexOutOfBoundsException with specified formatted detail message.
Message formatting is delegated to MessageFormat.
pattern - format specifierarguments - format arguments
public static java.io.EOFException createEOFException(Localizable pattern,
java.lang.Object... arguments)
EOFException with specified formatted detail message.
Message formatting is delegated to MessageFormat.
pattern - format specifierarguments - format arguments
public static java.io.IOException createIOException(java.lang.Throwable rootCause)
IOException with specified nested
Throwable root cause.
This factory method allows chaining of other exceptions within an
IOException even for Java 5. The constructor for
IOException with a cause parameter was introduced only
with Java 6.
rootCause - the exception or error that caused this exception
to be thrown.
public static java.lang.IllegalArgumentException createIllegalArgumentException(Localizable pattern,
java.lang.Object... arguments)
IllegalArgumentException with specified formatted detail message.
Message formatting is delegated to MessageFormat.
pattern - format specifierarguments - format arguments
public static java.lang.IllegalArgumentException createIllegalArgumentException(java.lang.Throwable rootCause)
IllegalArgumentException with specified nested
Throwable root cause.
rootCause - the exception or error that caused this exception
to be thrown.
public static java.lang.IllegalStateException createIllegalStateException(Localizable pattern,
java.lang.Object... arguments)
IllegalStateException with specified formatted detail message.
Message formatting is delegated to MessageFormat.
pattern - format specifierarguments - format arguments
public static java.util.ConcurrentModificationException createConcurrentModificationException(Localizable pattern,
java.lang.Object... arguments)
ConcurrentModificationException with specified formatted detail message.
Message formatting is delegated to MessageFormat.
pattern - format specifierarguments - format arguments
public static java.util.NoSuchElementException createNoSuchElementException(Localizable pattern,
java.lang.Object... arguments)
NoSuchElementException with specified formatted detail message.
Message formatting is delegated to MessageFormat.
pattern - format specifierarguments - format arguments
public static java.text.ParseException createParseException(int offset,
Localizable pattern,
java.lang.Object... arguments)
ParseException with specified
formatted detail message.
Message formatting is delegated to MessageFormat.
offset - offset at which error occurredpattern - format specifierarguments - format arguments
public static java.lang.RuntimeException createInternalError(java.lang.Throwable cause)
RuntimeException for an internal error.
cause - underlying cause
RuntimeException for an internal error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||