Exception: PrometheusReporter::TypeAlreadySpecified
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- PrometheusReporter::TypeAlreadySpecified
- Defined in:
- lib/prometheus_reporter/errors.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ TypeAlreadySpecified
constructor
A new instance of TypeAlreadySpecified.
- #message ⇒ Object
Constructor Details
#initialize(key) ⇒ TypeAlreadySpecified
Returns a new instance of TypeAlreadySpecified.
38 39 40 |
# File 'lib/prometheus_reporter/errors.rb', line 38 def initialize(key) @key = key end |
Instance Method Details
#message ⇒ Object
42 43 44 |
# File 'lib/prometheus_reporter/errors.rb', line 42 def "Can't overwrite type for the #{@key} metric (type is already specified)" end |