Skip to content
Interfacecustom-idv0.3.2

CustomIdErrors

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

interface CustomIdErrors

invalid()

Called when the wire is corrupt, truncated, or came from a different definition.

invalid(detail: string): Error

stale()

Called when the wire's prefix matches but its layout hash differs.

stale(prefix: string): Error