Skip to main content

RecordQueryError

@gravity-rail/react


@gravity-rail/react / RecordQueryError

Class: RecordQueryError

A failed runRecordQuery. message is the server's detail, which names query structure (fields, operators) and never record values. A challenge for extra sign-in verification throws StepUpRequiredError instead.

Extends​

  • Error

Constructors​

Constructor​

new RecordQueryError(kind, status, message, extra?): RecordQueryError

Parameters​

kind​

RecordQueryErrorKind

status​

number

message​

string

extra?​
errors?​

string[]

requiredScope?​

string

Returns​

RecordQueryError

Overrides​

Error.constructor

Properties​

cause?​

optional cause: unknown

Inherited from​

Error.cause


errors​

readonly errors: string[]

Per-field problems of a 422 Validation failed response; the server strips submitted values.


kind​

readonly kind: RecordQueryErrorKind


message​

message: string

Inherited from​

Error.message


name​

name: string

Inherited from​

Error.name


requiredScope?​

readonly optional requiredScope: string

The scope an access failure needs, when the server names one.


stack?​

optional stack: string

Inherited from​

Error.stack


status​

readonly status: number