Exception: GrafanaReporter::Application::ParameterValueError

Inherits:
ApplicationError show all
Defined in:
lib/grafana_reporter/application/errors.rb

Overview

Thrown, if the ā€˜-sā€™ parameter is not configured with exactly one variable name and one value.

Instance Method Summary collapse

Constructor Details

#initialize(length) ⇒ ParameterValueError

Returns a new instance of ParameterValueError.



13
14
15
# File 'lib/grafana_reporter/application/errors.rb', line 13

def initialize(length)
  super("Parameter '-s' needs exactly two values separated by comma, received #{length}.")
end