Sha256: 87887d884f4e4bcba5b3806cf8c7a5ef8543680851efac42515db25e9e8931db

Contents?: true

Size: 335 Bytes

Versions: 25

Compression:

Stored size: 335 Bytes

Contents

module Stackify
  class ErrorsCatcher
    def initialize(app, &block)
      @app = app
      @block = block
    end

    def call(env)
      @block.call env
      @app.call env
    rescue Exception => exception
      Stackify.logger_client.log_exception(StackifiedError.new exception, binding)
      raise exception
    end

  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
stackify-api-ruby-2.1.0 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-2.1.0.beta1 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-2.0.0 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.3.0.beta1 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.2.10 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.2.9 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.2.7 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.2.4 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.2.3 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.1.0 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.15 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.14 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.13 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.12 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.11 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.10 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.9 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.8 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.7 lib/stackify/rack/errors_catcher.rb
stackify-api-ruby-1.0.6 lib/stackify/rack/errors_catcher.rb