Exception: PrometheusReporter::HelpAlreadySpecified

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

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ HelpAlreadySpecified

Returns a new instance of HelpAlreadySpecified.



48
49
50
# File 'lib/prometheus_reporter/errors.rb', line 48

def initialize(key)
  @key = key
end

Instance Method Details

#messageObject



52
53
54
# File 'lib/prometheus_reporter/errors.rb', line 52

def message
  "Can't overwrite help for the #{@key} metric (help is already specified)"
end