Class CouchbaseError

A generic base error that all errors inherit. Exposes the cause and context of the error to enable easier debugging.

Hierarchy

Constructors

  • Parameters

    • message: string
    • Optional cause: Error
    • Optional context: ErrorContext

    Returns CouchbaseError

Properties

cause: undefined | Error

Specifies the underlying cause of this error, if one is available.

Specifies additional contextual information which is available for this error. Depending on the service that generated it.

message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc