lib/eco/api/error/handler.rb in eco-helpers-1.2.2 vs lib/eco/api/error/handler.rb in eco-helpers-1.3.1

- old
+ new

@@ -1,11 +1,11 @@ module Eco module API class Error class Handler < Eco::API::UseCases::UseCase - @types = [:transform] + @types = [:error_handler] - def initialize(name, type: :transform, root:, &block) + def initialize(name, type: :error_handler, root:, &block) super(name, type: type, root: root, &block) end def root=(value) raise "Root should be a Eco::API::Error::Handlers object. Given: #{value}" if !value.is_a?(Eco::API::Error::Handlers)