Exception: Grafana::QueryLetterDoesNotExistError

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

Overview

Raised if a given query letter does not exist on a specific Panel.

Instance Method Summary collapse

Constructor Details

#initialize(query_letter, panel) ⇒ QueryLetterDoesNotExistError

Returns a new instance of QueryLetterDoesNotExistError.

Parameters:

  • query_letter (String)

    query letter name, which could not be found on the panel

  • panel (Panel)

    panel object on which the query could not be found



32
33
34
35
# File 'lib/grafana/errors.rb', line 32

def initialize(query_letter, panel)
  super("The specified query '#{query_letter}' does not exist in the panel '#{panel.id}' "\
    "in dashboard '#{panel.dashboard}'.")
end