type alias TrapReply

Trap reply (!trap)

Indicates a non-fatal error occurred during command execution. The command may continue or be terminated depending on the error.

Properties

type: "trap"

Reply type discriminator

message: string

Human-readable error message

optional
category: number

Optional numeric error category

optional
attributes: Record<string, string>

Optional additional attributes

Usage

import { type TrapReply } from "protocol/reply.ts";