Class MongoCryptKMSRequestNetworkTimeoutError

Hierarchy

Constructors

Properties

cause?: Error
code?: string | number

This is a number in MongoServerError and a string in MongoDriverError这是MongoServerError中的一个数字,也是MongoDriverError中的字符串

connectionGeneration?: number
message: string
stack?: string
topologyVersion?: TopologyVersion
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get errmsg(): string
  • Legacy name for server error responses服务器错误响应的旧名称

    Returns string

  • get errorLabels(): string[]
  • Returns string[]

Methods

  • Checks the error to see if it has an error label检查错误以查看它是否有错误标签

    Parameters

    • label: string

      The error label to check for要检查的错误标签

    Returns boolean

    returns true if the error has the provided error label如果错误具有提供的错误标签,则返回true

  • Create .stack property on a target object在目标对象上创建.stack属性

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc