Class
SinterDocumentError
A request could not be encoded, so nothing was sent and the connection is
unaffected. The usual causes are a value the database cannot store (such as
undefined, a function, or a class instance like Map), a document nested
more than 100 levels deep, or a request larger than 16 MiB. The cause says
which. Code INVALID_DOCUMENT.
class SinterDocumentError extends SinterErrorDefined in packages/driver/src/errors.ts:99
Hierarchy
- Error
- SinterError
- SinterDocumentError
- SinterError
Constructors#
constructor
#new SinterDocumentError(message: string, options?: ErrorOptions)Defined in packages/driver/src/errors.ts:100
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