Exception: PrometheusReporter::TypeAlreadySpecified

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

Instance Method Summary collapse

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

#messageObject



42
43
44
# File 'lib/prometheus_reporter/errors.rb', line 42

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