Skip to content

basalt / http/src / GuardsWithoutContainerError

Class: GuardsWithoutContainerError ​

Defined in: http/src/errors.ts:89

A route pipeline carried guards but no container, so the guards could not run. The pipeline used to skip them silently — a fail-open shape: the request would reach the handler unauthorized. Guards and container are wired together in every shipped adapter, so this can only fire on a hand-built pipeline; it fails closed.

Extends ​

Constructors ​

Constructor ​

> new GuardsWithoutContainerError(route, count): GuardsWithoutContainerError

Defined in: http/src/errors.ts:91

Parameters ​

route ​

string

count ​

number

Returns ​

GuardsWithoutContainerError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 500 = 500

Defined in: http/src/errors.ts:90

Released under the MIT License.