Class GrafanaError

A Grafana error object.

Hierarchy (view full)

Constructors

  • Construct a new Grafana error.

    Parameters

    • message: string

      The status message associated with the result.

    • Optional code: number

      The response code of the response.

    • Optional options: any

      The request options (configuration).

    • Optional data: any

      The payload of the response.

    Returns GrafanaError

Properties

message: string
name: string
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

Accessors

  • get code(): number
  • The error code associated with this error.

    Returns number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void