summaryrefslogtreecommitdiff
path: root/lib/gitlab/metrics/dashboard/transformers/errors.rb
blob: 4d94ab098ae657f22f1cad10bd27c36aec9b9dce (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
        TransformerError = Class.new(StandardError)

        module Errors
          class MissingAttribute < TransformerError
            def initialize(attribute_name)
              super("Missing attribute: '#{attribute_name}'")
            end
          end
        end
      end
    end
  end
end