|
||||||||||
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
java.lang.ArithmeticException
org.apache.commons.math3.exception.MathArithmeticException
public class MathArithmeticException
Base class for arithmetic exceptions.
It is used for all the exceptions that have the semantics of the standard
ArithmeticException
, but must also provide a localized
message.
Constructor Summary | |
---|---|
MathArithmeticException()
Default constructor. |
|
MathArithmeticException(Localizable pattern,
Object... args)
Constructor with a specific message. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MathArithmeticException()
public MathArithmeticException(Localizable pattern, Object... args)
pattern
- Message pattern providing the specific context of
the error.args
- Arguments.Method Detail |
---|
public ExceptionContext getContext()
getContext
in interface ExceptionContextProvider
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |