Skip to main content

Interface: ErrorDescription

Defined in: packages/messaging/src/describe-error.ts:4

An error reduced to what a log line may carry.

Properties​

class​

readonly class: string

Defined in: packages/messaging/src/describe-error.ts:6

The constructor's name, which is more telling than name (pg's is error).


code?​

readonly optional code?: string

Defined in: packages/messaging/src/describe-error.ts:8

A PostgreSQL SQLSTATE or a Node system code such as ECONNREFUSED, when there is one.


message?​

readonly optional message?: string

Defined in: packages/messaging/src/describe-error.ts:10

The message, scrubbed, with quoted literals elided where they may echo a value.


stack?​

readonly optional stack?: string

Defined in: packages/messaging/src/describe-error.ts:12

Frames only (never the message line), scrubbed.