projects/common/src/error.rb in foobara-0.0.24 vs projects/common/src/error.rb in foobara-0.0.25

- old
+ new

@@ -96,14 +96,15 @@ context: {}, name: nil, symbol: nil, message: nil, base_error: self, + mod: base_error, category: base_error.category, is_fatal: false, abstract: false ) - name ||= "#{base_error.name}::#{Util.classify(symbol)}Error" + name ||= [*mod.name, "#{Util.classify(symbol)}Error"].join("::") klass = Util.make_class_p(name, base_error) do singleton_class.define_method :category do category end