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-3.0.21 lib/eco/api/error/handler.rb
eco-helpers-3.0.20 lib/eco/api/error/handler.rb
eco-helpers-3.0.19 lib/eco/api/error/handler.rb
eco-helpers-3.0.18 lib/eco/api/error/handler.rb
eco-helpers-3.0.17 lib/eco/api/error/handler.rb
eco-helpers-3.0.16 lib/eco/api/error/handler.rb
eco-helpers-3.0.15 lib/eco/api/error/handler.rb
eco-helpers-3.0.14 lib/eco/api/error/handler.rb
eco-helpers-3.0.13 lib/eco/api/error/handler.rb
eco-helpers-3.0.12 lib/eco/api/error/handler.rb
eco-helpers-3.0.11 lib/eco/api/error/handler.rb
eco-helpers-3.0.10 lib/eco/api/error/handler.rb
eco-helpers-3.0.9 lib/eco/api/error/handler.rb
eco-helpers-3.0.8 lib/eco/api/error/handler.rb
eco-helpers-3.0.7 lib/eco/api/error/handler.rb
eco-helpers-3.0.6 lib/eco/api/error/handler.rb
eco-helpers-3.0.5 lib/eco/api/error/handler.rb
eco-helpers-3.0.4 lib/eco/api/error/handler.rb
eco-helpers-3.0.3 lib/eco/api/error/handler.rb
eco-helpers-3.0.2 lib/eco/api/error/handler.rb