Decimal.Error exception

The exception that all Decimal operations may raise.

Fields

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.

Source

Summary

exception(args)

Callback implementation of Exception.exception/1

message(exception)

Callback implementation of Exception.message/1

Functions

exception(args)

Specs:

Callback implementation of Exception.exception/1.

Source
message(exception)

Specs:

Callback implementation of Exception.message/1.

Source