public class MathArithmeticException extends java.lang.ArithmeticException implements ExceptionContextProvider
ArithmeticException, but must also provide a localized
message.| Modifier and Type | Field and Description |
|---|---|
private ExceptionContext |
context
Context.
|
private static long |
serialVersionUID
Serializable version Id.
|
| Constructor and Description |
|---|
MathArithmeticException()
Default constructor.
|
MathArithmeticException(Localizable pattern,
java.lang.Object... args)
Constructor with a specific message.
|
| 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 MathArithmeticException()
public MathArithmeticException(Localizable pattern, java.lang.Object... args)
pattern - Message pattern providing the specific context 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