# CustomIdErrors

`interface` in `custom-id` · v0.1.1

<https://docs.seedcord.org/packages/custom-id/0.1.1/interfaces/custom-id-errors>

Supply one constructor per failure. [`decode`](/packages/custom-id/0.1.1/classes/custom-id#decode) throws whatever the matching one returns.

```ts
interface CustomIdErrors
```

## Methods

### invalid

```ts
invalid(detail: string): Error
```

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

### stale

```ts
stale(prefix: string): Error
```

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