Exception: GrafanaReporter::DatasourceRequestInvalidReturnValueError
- Inherits:
-
GrafanaReporterError
- Object
- StandardError
- GrafanaReporterError
- GrafanaReporter::DatasourceRequestInvalidReturnValueError
- 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
-
#initialize(datasource, message) ⇒ DatasourceRequestInvalidReturnValueError
constructor
A new instance of DatasourceRequestInvalidReturnValueError.
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, ) super("The datasource request to '#{datasource.name}' (#{datasource.class}) "\ "returned an invalid value: '#{}'") end |