Skip to content
Interfacecustom-idv0.2.7

CustomIdErrors

Supply one constructor per failure. decode throws whatever the matching one returns.

interface CustomIdErrors

invalid()

Built when the wire is corrupt, truncated, or minted by a different definition.

invalid(detail: string): Error

stale()

Built when the wire's prefix matches and its layout hash differs.

stale(prefix: string): Error