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.1 lib/eco/api/error/handler.rb
eco-helpers-3.0.0 lib/eco/api/error/handler.rb
eco-helpers-2.7.25 lib/eco/api/error/handler.rb
eco-helpers-2.7.24 lib/eco/api/error/handler.rb
eco-helpers-2.7.23 lib/eco/api/error/handler.rb
eco-helpers-2.7.22 lib/eco/api/error/handler.rb
eco-helpers-2.7.21 lib/eco/api/error/handler.rb
eco-helpers-2.7.20 lib/eco/api/error/handler.rb
eco-helpers-2.7.19 lib/eco/api/error/handler.rb
eco-helpers-2.7.18 lib/eco/api/error/handler.rb
eco-helpers-2.7.17 lib/eco/api/error/handler.rb
eco-helpers-2.7.16 lib/eco/api/error/handler.rb
eco-helpers-2.7.15 lib/eco/api/error/handler.rb
eco-helpers-2.7.14 lib/eco/api/error/handler.rb
eco-helpers-2.7.13 lib/eco/api/error/handler.rb
eco-helpers-2.7.12 lib/eco/api/error/handler.rb
eco-helpers-2.7.4 lib/eco/api/error/handler.rb
eco-helpers-2.7.2 lib/eco/api/error/handler.rb
eco-helpers-2.7.1 lib/eco/api/error/handler.rb
eco-helpers-2.7.0 lib/eco/api/error/handler.rb