Decimal.Error exception
The exception that all Decimal operations may raise.
Fields
signal
- The signalled error, additional signalled errors will be found in the context.reason
- The reason for the error.result
- The result of the operation signalling the error.
Rescuing the error to access the result or the other fields of the error is discouraged and should only be done for exceptional conditions. It is more pragmatic to set the appropriate traps on the context and check the flags after the operation if the result needs to be inspected.
Summary↑
exception(args) | Callback implementation of |
message(exception) | Callback implementation of |
Functions
Specs:
- exception(Keyword.t) :: Exception.t
Callback implementation of Exception.exception/1
.
Specs:
- message(Exception.t) :: String.t
Callback implementation of Exception.message/1
.