Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAmountExceedsMaxSafeInt = errors.New( "amount exceeds max safe int") // Deposit would overflow balance
ErrAmountExceedsMaxSafeInt is returned when an amount exceeds the maximum safe integer value.
View Source
var ErrInvalidCurrencyCode = errors.New(
"invalid currency code")
ErrInvalidCurrencyCode is returned when a currency code is invalid.
View Source
var ErrInvalidDecimalPlaces = errors.New(
"amount has more decimal places than allowed by the currency")
ErrInvalidDecimalPlaces is returned when a monetary amount has more decimal places than allowed by the currency.
View Source
var ErrUnsupportedCurrency = errors.New(
"unsupported currency")
ErrUnsupportedCurrency is return when currency is not supported by global registry #see: /pkg/currency
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.