Options
All
  • Public
  • Public/Protected
  • All
Menu

A Grafana error object.

Hierarchy

Index

Constructors

  • new GrafanaError(message: string, code?: number, options?: any, data?: any): Rest.GrafanaError
  • 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 Rest.GrafanaError

Properties

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

Type declaration

stackTraceLimit: number

Accessors

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

    Returns number

Methods

  • toString(): string
  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc