Completed
Pull Request — master (#14)
by Marcelo
02:15
created

ArgumentError   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 9 2
1
module Koine
2
  module Attributes
3
    class ArgumentError < ::ArgumentError
4
      attr_reader :attribute_name
5
6
      def initialize(error)
7
        if error.is_a?(Exception)
8
          super(error.message)
9
          set_backtrace(error.backtrace)
10
          return
11
        end
12
13
        super(error)
14
      end
15
    end
16
  end
17
end
18