Sha256: 724bf1c5547a7691bfae1f0e2b297edd30a7d47c145f21f6c933284dde9c4642

Contents?: true

Size: 205 Bytes

Versions: 6

Compression:

Stored size: 205 Bytes

Contents

# encoding: utf-8

class Object
  def catching_standard_errors(l = logger, &block)
    begin
      yield
    rescue StandardError => e
      Adhearsion::Events.trigger :exception, [e, l]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adhearsion-2.0.1 lib/adhearsion/foundation/exception_handler.rb
adhearsion-2.0.0 lib/adhearsion/foundation/exception_handler.rb
adhearsion-2.0.0.rc5 lib/adhearsion/foundation/exception_handler.rb
adhearsion-2.0.0.rc4 lib/adhearsion/foundation/exception_handler.rb
adhearsion-2.0.0.rc3 lib/adhearsion/foundation/exception_handler.rb
adhearsion-2.0.0.rc2 lib/adhearsion/foundation/exception_handler.rb