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.1.2 lib/eco/api/error/handler.rb
eco-helpers-2.1.1 lib/eco/api/error/handler.rb
eco-helpers-2.0.68 lib/eco/api/error/handler.rb
eco-helpers-2.0.67 lib/eco/api/error/handler.rb
eco-helpers-2.0.66 lib/eco/api/error/handler.rb
eco-helpers-2.0.65 lib/eco/api/error/handler.rb
eco-helpers-2.0.64 lib/eco/api/error/handler.rb
eco-helpers-2.0.63 lib/eco/api/error/handler.rb
eco-helpers-2.0.62 lib/eco/api/error/handler.rb
eco-helpers-2.0.61 lib/eco/api/error/handler.rb
eco-helpers-2.0.60 lib/eco/api/error/handler.rb
eco-helpers-2.0.59 lib/eco/api/error/handler.rb
eco-helpers-2.0.58 lib/eco/api/error/handler.rb
eco-helpers-2.0.57 lib/eco/api/error/handler.rb
eco-helpers-2.0.56 lib/eco/api/error/handler.rb
eco-helpers-2.0.55 lib/eco/api/error/handler.rb
eco-helpers-2.0.54 lib/eco/api/error/handler.rb
eco-helpers-2.0.53 lib/eco/api/error/handler.rb
eco-helpers-2.0.52 lib/eco/api/error/handler.rb
eco-helpers-2.0.51 lib/eco/api/error/handler.rb