class Grafana::DatasourceDoesNotExistError

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

Public Class Methods

new(field, datasource_identifier) click to toggle source

@param field [String] specifies, how the datasource has been searched, e.g. id or name @param datasource_identifier [String] identifier of the datasource, which could not be found,

e.g. the specified id or name
Calls superclass method Grafana::GrafanaError::new
# File lib/grafana/errors.rb, line 43
def initialize(field, datasource_identifier)
  super("Datasource with #{field} '#{datasource_identifier}' does not exist.")
end