Completed
Pull Request — master (#14)
by Marcelo
40s
created

ArgumentError   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
dl 0
loc 11
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
      def initialize(error)
5
        if error.is_a?(Exception)
6
          super(error.message)
7
          set_backtrace(error.backtrace)
8
          return
9
        end
10
11
        super(error)
12
      end
13
    end
14
  end
15
end
16