Serializable, ExceptionContextProviderMathArithmeticException, MathIllegalArgumentException, MathIllegalStateException, MathUnsupportedOperationExceptionpublic class MathRuntimeException extends RuntimeException implements ExceptionContextProvider
NullArgumentException) inherit from this class.
In most cases, this class should not be instantiated directly: it should
serve as a base class for implementing exception classes that describe a
specific "problem".| Constructor | Description |
|---|---|
MathRuntimeException(Throwable cause,
Localizable pattern,
Object... args) |
|
MathRuntimeException(Localizable pattern,
Object... args) |
| Modifier and Type | Method | Description |
|---|---|---|
ExceptionContext |
getContext() |
Gets a reference to the "rich context" data structure that allows to
customize error messages and store key, value pairs in exceptions.
|
String |
getLocalizedMessage() |
|
String |
getMessage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MathRuntimeException(Localizable pattern, Object... args)
pattern - Message pattern explaining the cause of the error.args - Arguments.public MathRuntimeException(Throwable cause, Localizable pattern, Object... args)
cause - Root cause.pattern - Message pattern explaining the cause of the error.args - Arguments.public ExceptionContext getContext()
getContext in interface ExceptionContextProviderpublic String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class ThrowableCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.