Skip to content

basalt / search/src / SearchReindexScopeError

Class: SearchReindexScopeError ​

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

A reindex() whose scope is ambiguous or not allowed where it runs: a whole-index rebuild requested from inside a tenant context, both scopes at once, or — with @basaltkit/tenancy registered — no scope at all outside a tenant context. A rebuild clears before it writes, so its reach is never guessed.

Extends ​

Constructors ​

Constructor ​

> new SearchReindexScopeError(message): SearchReindexScopeError

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

Parameters ​

message ​

string

Returns ​

SearchReindexScopeError

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:97

Released under the MIT License.