Exception: PrometheusReporter::HelpAlreadySpecified
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- PrometheusReporter::HelpAlreadySpecified
- Defined in:
- lib/prometheus_reporter/errors.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ HelpAlreadySpecified
constructor
A new instance of HelpAlreadySpecified.
- #message ⇒ Object
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
#message ⇒ Object
52 53 54 |
# File 'lib/prometheus_reporter/errors.rb', line 52 def "Can't overwrite help for the #{@key} metric (help is already specified)" end |