Skip to content

basalt / search/src / SearchFilterValueError

Class: SearchFilterValueError ​

Defined in: search/src/search.ts:43

A filter value that is not a string, a finite number or a boolean (or a non-nested array of those). null/undefined are refused too: dropping the filter would silently widen the result — { ownerId: user?.id } with no user would return everyone's rows — and every engine reads them differently.

Extends ​

Constructors ​

Constructor ​

> new SearchFilterValueError(field): SearchFilterValueError

Defined in: search/src/search.ts:45

Parameters ​

field ​

string

Returns ​

SearchFilterValueError

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: 400 = 400

Defined in: search/src/search.ts:44

Released under the MIT License.