Exception: GrafanaReporter::DatasourceRequestInvalidReturnValueError

Inherits:
GrafanaReporterError
  • Object
show all
Defined in:
lib/grafana_reporter/errors.rb

Overview

Raised if the return value of a datasource request does not match the expected return hash.

Instance Method Summary collapse

Constructor Details

#initialize(datasource, message) ⇒ DatasourceRequestInvalidReturnValueError

Returns a new instance of DatasourceRequestInvalidReturnValueError.



29
30
31
32
# File 'lib/grafana_reporter/errors.rb', line 29

def initialize(datasource, message)
  super("The datasource request to '#{datasource.name}' (#{datasource.class}) "\
        "returned an invalid value: '#{message}'")
end