Sha256: d8c9085215a8ecfca08b166e195ac1e6b21bcba75dadf9991ea6d120aa680452

Contents?: true

Size: 169 Bytes

Versions: 4

Compression:

Stored size: 169 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adhearsion-2.0.0.beta1 lib/adhearsion/foundation/exception_handler.rb
adhearsion-2.0.0.alpha3 lib/adhearsion/foundation/exception_handler.rb
adhearsion-2.0.0.alpha2 lib/adhearsion/foundation/exception_handler.rb
adhearsion-2.0.0.alpha1 lib/adhearsion/foundation/exception_handler.rb