Decimal v1.1.1 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
Functions
Callback implementation for c:Exception.exception/1
Callback implementation for c:Exception.message/1
Functions
Specs
exception(Keyword.t) :: Exception.t
exception(String.t) :: Exception.t
Callback implementation for c:Exception.exception/1
.
Specs
message(Exception.t) :: String.t
Callback implementation for c:Exception.message/1
.