ExFPE.InputError exception (ex_fpe v0.1.0)

Copy Markdown View Source

Raised by ExFPE.encrypt!/3 and ExFPE.decrypt!/3 when the tweak or the input numerical string is invalid.

The structured :reason is the same term ExFPE.encrypt/3 / ExFPE.decrypt/3 would return under {:error, reason}.

Summary

Types

t()

@type t() :: %ExFPE.InputError{__exception__: term(), reason: term()}