public class MathRuntimeException extends java.lang.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".| Modifier and Type | Field and Description |
|---|---|
private ExceptionContext |
context
Context.
|
private static long |
serialVersionUID
Serializable version Id.
|
| Constructor and Description |
|---|
MathRuntimeException(Localizable pattern,
java.lang.Object... args) |
| Modifier and Type | Method and 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.
|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage() |
private static final long serialVersionUID
private final ExceptionContext context
public MathRuntimeException(Localizable pattern, java.lang.Object... args)
pattern - Message pattern explaining the cause of the error.args - Arguments.public ExceptionContext getContext()
getContext in interface ExceptionContextProviderpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.ThrowableCopyright (c) 2003-2015 Apache Software Foundation