Sha256: 0ab53e8525a194f30a205e490dc7df1042186d43fe47175f109e50c1245598a5

Contents?: true

Size: 495 Bytes

Versions: 186

Compression:

Stored size: 495 Bytes

Contents

module Eco
  module API
    class Error
      class Handler < Eco::API::UseCases::UseCase
        @types = [:error_handler]

        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)
          @root = value
        end

      end
    end
  end
end

Version data entries

186 entries across 186 versions & 1 rubygems

Version Path
eco-helpers-2.6.4 lib/eco/api/error/handler.rb
eco-helpers-2.6.3 lib/eco/api/error/handler.rb
eco-helpers-2.6.2 lib/eco/api/error/handler.rb
eco-helpers-2.6.1 lib/eco/api/error/handler.rb
eco-helpers-2.6.0 lib/eco/api/error/handler.rb
eco-helpers-2.5.10 lib/eco/api/error/handler.rb
eco-helpers-2.5.9 lib/eco/api/error/handler.rb
eco-helpers-2.5.8 lib/eco/api/error/handler.rb
eco-helpers-2.5.7 lib/eco/api/error/handler.rb
eco-helpers-2.5.6 lib/eco/api/error/handler.rb
eco-helpers-2.5.5 lib/eco/api/error/handler.rb
eco-helpers-2.5.4 lib/eco/api/error/handler.rb
eco-helpers-2.5.3 lib/eco/api/error/handler.rb
eco-helpers-2.5.2 lib/eco/api/error/handler.rb
eco-helpers-2.5.1 lib/eco/api/error/handler.rb
eco-helpers-2.4.9 lib/eco/api/error/handler.rb
eco-helpers-2.4.8 lib/eco/api/error/handler.rb
eco-helpers-2.4.7 lib/eco/api/error/handler.rb
eco-helpers-2.4.6 lib/eco/api/error/handler.rb
eco-helpers-2.4.5 lib/eco/api/error/handler.rb