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.

    • Optionalcode: number

      The response code of the response.

    • Optionaloptions: any

      The request options (configuration).

    • Optionaldata: any

      The payload of the response.

    Returns GrafanaError

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

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
    • OptionalconstructorOpt: Function

    Returns void