Exception: PrometheusReporter::UnknownMetricType

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

Instance Method Summary collapse

Constructor Details

#initialize(key_type) ⇒ UnknownMetricType

Returns a new instance of UnknownMetricType.



27
28
29
# File 'lib/prometheus_reporter/errors.rb', line 27

def initialize(key_type)
  @type = key_type
end

Instance Method Details

#messageObject



31
32
33
34
# File 'lib/prometheus_reporter/errors.rb', line 31

def message
  "Unknown key type: #{@type}. "\
    "Valid ones: #{TextFormatter::TYPES.join(', ')}"
end