debian-mirror-gitlab/lib/gitlab/metrics/dashboard/transformers/errors.rb

20 lines
399 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
module Gitlab
module Metrics
module Dashboard
module Transformers
module Errors
2021-01-03 14:25:43 +05:30
BaseError = Class.new(StandardError)
class MissingAttribute < BaseError
2020-11-24 15:15:51 +05:30
def initialize(attribute_name)
super("Missing attribute: '#{attribute_name}'")
end
end
end
end
end
end
end