debian-mirror-gitlab/lib/gitlab/metrics/dashboard/transformers/errors.rb
2021-01-03 14:25:43 +05:30

19 lines
399 B
Ruby

# frozen_string_literal: true
module Gitlab
module Metrics
module Dashboard
module Transformers
module Errors
BaseError = Class.new(StandardError)
class MissingAttribute < BaseError
def initialize(attribute_name)
super("Missing attribute: '#{attribute_name}'")
end
end
end
end
end
end
end