Sha256: 26a93cced86c913c355f8a0d76f09dd8e55087903da86d6baef70bc9c7ffbcbe

Contents?: true

Size: 188 Bytes

Versions: 1

Compression:

Stored size: 188 Bytes

Contents

# encoding: utf-8

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhearsion-2.0.0.rc1 lib/adhearsion/foundation/exception_handler.rb