Class OneBlinkStorageError

An error class that extends Error

Hierarchy

  • Error
    • OneBlinkStorageError

Constructors

  • Used to create an instance of the OneBlinkStorageError class.

    Parameters

    • message: string

      The message associated with the error

    • options: {
          httpStatusCode: number;
          originalError?: Error;
      }

      The options associated with the error

      • httpStatusCode: number

        The http status code associated with the error

      • Optional originalError?: Error

        The original error that was thrown

    Returns OneBlinkStorageError

Properties

httpStatusCode: number

The http status code associated with the error

message: string
name: string
originalError?: Error

The original error that was thrown

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

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void