Class MongoDBRealmError

An error produced while communicating with the MongoDB Realm server.

Hierarchy

  • Error
    • MongoDBRealmError

Constructors

Properties

error: undefined | string

Any application-level error message.

errorCode: undefined | string

Any application-level error code.

link: undefined | string

Any application-level (URL) link containing details about the error.

message: string
method: Method

The method used when requesting.

name: string
stack?: string
statusCode: number

The HTTP status code of the response.

statusText: string

A human readable version of the HTTP status.

url: string

The URL of the resource which got fetched.

Methods

  • Constructs and returns an error from a request and a response. Note: The caller must throw this error themselves.

    Parameters

    • request: Request<unknown>

      The request sent to the server.

    • response: FetchResponse

      A raw response, as returned from the server.

    Returns Promise<MongoDBRealmError>

    An error from a request and a response.

Generated using TypeDoc