Exception: PrometheusReporter::UnknownConfig

Inherits:
BaseError
  • Object
show all
Defined in:
lib/prometheus_reporter/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ UnknownConfig

Returns a new instance of UnknownConfig.



7
8
9
# File 'lib/prometheus_reporter/errors.rb', line 7

def initialize(key)
  @key = key
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/prometheus_reporter/errors.rb', line 11

def message
  "Unknown configuration option: #{@key}"
end