module Eco module API class Error class Handler < Eco::API::UseCases::UseCase @types = [:transform] def initialize(name, type: :transform, 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) @root = value end end end end end