Class: FailtaleReporter::Client
- Inherits:
-
Object
- Object
- FailtaleReporter::Client
- Defined in:
- lib/failtale_reporter/client.rb
Instance Method Summary collapse
Instance Method Details
#report(error = nil, *ctxs) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/failtale_reporter/client.rb', line 3 def report(error=nil, *ctxs) error = handle_exception(error, ctxs) yield if block_given? and error.nil? rescue Exception => exception error = handle_exception(exception, ctxs) ensure post_report(error) unless error.nil? raise exception unless exception.nil? end |