Exception: Grafana::DatasourceDoesNotExistError

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

Overview

Raised if a given datasource does not exist in a specific Grafana instance.

Instance Method Summary collapse

Constructor Details

#initialize(field, datasource_identifier) ⇒ DatasourceDoesNotExistError

Returns a new instance of DatasourceDoesNotExistError.

Parameters:

  • field (String)

    specifies, how the datasource has been searched, e.g. id or name

  • datasource_identifier (String)

    identifier of the datasource, which could not be found, e.g. the specified id or name



43
44
45
# File 'lib/grafana/errors.rb', line 43

def initialize(field, datasource_identifier)
  super("Datasource with #{field} '#{datasource_identifier}' does not exist.")
end