ArithmeticException, but must also provide a localized
message.
| Modifier and Type | Field and Description |
|---|---|
| private final ExceptionContext | context
Context. |
| private static final long | serialVersionUID
Serializable version Id.
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | MathArithmeticException(Localizable
Message pattern providing the specific context of
the error. pattern, Object... Arguments. args)Constructor with a specific message. |
| Modifier and Type | Method and Description |
|---|---|
| public ExceptionContext | getContext()
Implements org. Gets a reference to the "rich context" data structure that allows to customize error messages and store key, value pairs in exceptions. |
| public String | getLocalizedMessage()
Overrides java. Creates a localized description of this throwable. |
| public String | getMessage()
Overrides java. Returns the detail message string of this throwable. |
| context | back to summary |
|---|---|
| private final ExceptionContext context Context. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Serializable version Id. | |
| MathArithmeticException | back to summary |
|---|---|
| public MathArithmeticException() Default constructor. | |
| MathArithmeticException | back to summary |
|---|---|
| public MathArithmeticException(Localizable pattern, Object... args) Constructor with a specific message.
| |
| getContext | back to summary |
|---|---|
| public ExceptionContext getContext() Implements org. Doc from org. Gets a reference to the "rich context" data structure that allows to customize error messages and store key, value pairs in exceptions.
| |
| getLocalizedMessage | back to summary |
|---|---|
| public String getLocalizedMessage() Overrides java. Doc from java. Creates a localized description of this throwable.
Subclasses may override this method in order to produce a
locale-specific message. For subclasses that do not override this
method, the default implementation returns the same result as
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |