SoftBank.Note.parse-exclamation-mark
You're seeing just the function
parse-exclamation-mark
, go back to SoftBank.Note module for more information.
Parse a value into a SoftBank.Note
type.
Similar to parse/3
but returns a %SoftBank.Note{}
or raises an error if parsing fails.
Example:
iex> SoftBank.Note.parse!("1,234.56", :USD)
%SoftBank.Note{amount: 123456, currency: :USD}
iex> SoftBank.Note.parse!("wrong", :USD)
** (ArgumentError) unable to parse "wrong"