# ProtocolError (@salmonui/data/json)

> The ProtocolError class of @salmonui/data/json: error member of a protocol response.

Canonical: https://salmonui.dev/docs/reference/data/json/ProtocolError

```ts
import { ProtocolError } from '@salmonui/data/json';
```

Also exported from `@salmonui/data`.

Entry index: https://salmonui.dev/docs/reference/data/json (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data/json.md).

## Reference

Kind: class

```ts
class ProtocolError extends Error {
    readonly name = "ProtocolError";
    readonly code: string;
    constructor(code: string, message: string);
}
```

`error` member of a protocol response.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `name` | `readonly name = "ProtocolError";` |  |  |
| `code` | `readonly code: string;` |  |  |
