public final class ETrapException extends ArithmeticException
| Constructor and Description |
|---|
ETrapException(int flag,
EContext ctx,
Object result)
Initializes a new instance of the
ETrapException class. |
| Modifier and Type | Method and Description |
|---|---|
EContext |
getContext()
Gets the arithmetic context used during the operation that triggered the
trap.
|
int |
getError()
Gets the flag that specifies the kind of error (EContext.FlagXXX).
|
Object |
getResult()
Gets the defined result of the operation that caused the trap.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ETrapException(int flag,
EContext ctx,
Object result)
ETrapException class.flag - A flag that specifies the kind of error (EContext.FlagXXYY). This will only be one flag, such as FlagInexact or FlagSubnormal.ctx - A context object for arbitrary-precision arithmetic settings.result - An arbitrary object.public final EContext getContext()
public final Object getResult()
public final int getError()
FlagInexact or FlagSubnormal.FlagInexact or FlagSubnormal.CBOR for Java documentation, generated in 2016.