Onchain.Hex.InvalidHex exception (onchain v0.16.0)

Copy Markdown View Source

Raised by Onchain.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 Onchain.Hex.InvalidHex to handle these.