summaryrefslogtreecommitdiff
path: root/lib/gitlab/metrics/dashboard/transformers/errors.rb
blob: bc85dc4e131e86748757beaa09ea8b1e29466ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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