Exception: Grafana::PanelDoesNotExistError

Inherits:
GrafanaError
  • Object
show all
Defined in:
lib/grafana/errors.rb

Overview

Raised if a given panel does not exist on a specific Dashboard in the current Grafana instance.

Instance Method Summary collapse

Constructor Details

#initialize(panel_id, dashboard) ⇒ PanelDoesNotExistError

Returns a new instance of PanelDoesNotExistError.

Parameters:

  • panel_id (String)

    panel id, which could not be found on the dashboard

  • dashboard (Dashboard)

    dashboard object on which the panel could not be found



23
24
25
# File 'lib/grafana/errors.rb', line 23

def initialize(panel_id, dashboard)
  super("The specified panel id '#{panel_id}' does not exist on the dashboard '#{dashboard.id}'.")
end