Token error types.
Summary
Functions
Create an amount mismatch error.
Create an insufficient funds error.
Create an invalid authority error.
Create an invalid destination error.
Create an invalid scheme error.
Create an invalid script error.
Types
@type error_type() ::
:invalid_scheme
| :amount_mismatch
| :invalid_script
| :invalid_destination
| :invalid_authority
| :signing_failed
| :not_splittable
| :insufficient_funds
| :bundle_error
@type t() :: %BSV.Tokens.Error{ __exception__: true, message: String.t(), type: error_type() }
Functions
@spec amount_mismatch(non_neg_integer(), non_neg_integer()) :: t()
Create an amount mismatch error.
@spec insufficient_funds(non_neg_integer(), non_neg_integer()) :: t()
Create an insufficient funds error.
Create an invalid authority error.
Create an invalid destination error.
Create an invalid scheme error.
Create an invalid script error.