Localize.InvalidAmountError exception (Localize v1.5.0)

Copy Markdown View Source

Exception returned when a currency amount names its currency but its number cannot be read.

Localize.Number.Parser.parse_currency_amount/2 returns it with the :currency it found, the :amount text it could not read as a number, and the number parser's own error as :cause.