Cartouche.Hex.InvalidHex exception (Cartouche v0.2.0)

Copy Markdown View Source

Raised by Cartouche.Hex decode/encode bang functions when input is not valid hex (wrong length, non-hex characters, missing/extra 0x prefix, etc.).

Public callers can rescue Cartouche.Hex.InvalidHex to handle these.