Class
SinterServerError
The server rejected a request. Code SERVER_ERROR.
Use serverErrorName to tell failures apart, such as DuplicateKey.
class SinterServerError extends SinterErrorDefined in packages/driver/src/errors.ts:170
Hierarchy
- Error
- SinterError
- SinterServerError
- SinterError
Constructors#
constructor
#new SinterServerError(message: string, options?: SinterServerErrorOptions)Defined in packages/driver/src/errors.ts:185
Overrides SinterError.constructor
Properties#
code
#readonly code: SinterErrorCodeA stable identifier for the kind of failure; see SinterErrorCode.
Inherited from SinterError.code
Defined in packages/driver/src/errors.ts:58
details
#readonly details: Document | undefinedExtra structured information from the server, if any.
Defined in packages/driver/src/errors.ts:183
retryable
#readonly retryable: booleanWhether the server says the same request may succeed if retried. false
unless stated.
Defined in packages/driver/src/errors.ts:181
serverErrorName
#readonly serverErrorName: string | undefinedThe server's name for the error, such as DuplicateKey.
Defined in packages/driver/src/errors.ts:176
wireCode
#readonly wireCode: number | undefinedThe numeric error code from the wire protocol, if the server sent one.
Defined in packages/driver/src/errors.ts:174
Used by#
SinterCompatibilityErrorSinterCompatibilityError.codeSinterCompatibilityError.constructorSinterCompatibilityError.retryableSinterInsertManyErrorSinterInsertManyError.codeSinterInsertManyError.constructorSinterInsertManyError.detailsSinterInsertManyError.retryableSinterInsertManyError.serverErrorNameSinterInsertManyError.wireCode