Method: Catcher.block

Defined in:
lib/catcher.rb

.block(progname = nil) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/catcher.rb', line 7

def self.block(progname = nil)
  begin
    yield
  rescue Exception => e
    log_exception e, progname
  end
end