Guard / foldkit-guard/server

ComputeRefused

interface · packages/guard/src/diagnostics.ts:15

interface ComputeRefused extends Diagnostic {
  readonly _tag: 'ComputeRefused'
  readonly entity: string
  readonly error: Error
}

An operator refused to work out a value a guarded write computes (text holding NUL, an implementation that throws). The write was refused with a fixed message, since the operator's own may say anything.

In the guides

Members

ComputeRefused._tag

property · packages/guard/src/diagnostics.ts:16

readonly _tag: 'ComputeRefused'

ComputeRefused.entity

property · packages/guard/src/diagnostics.ts:17

readonly entity: string

ComputeRefused.error

property · packages/guard/src/diagnostics.ts:19

readonly error: Error

The operator's own refusal.