Module: RailLine::ResultDo::ClassMethods
- Defined in:
- lib/rail_line/result_do.rb
Instance Method Summary collapse
-
#handle_result { ... } ⇒ RailLine::Failure, RailLine::Success
The result of the block.
Instance Method Details
#handle_result { ... } ⇒ RailLine::Failure, RailLine::Success
Returns The result of the block.
60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/rail_line/result_do.rb', line 60 def handle_result ThreadContext.depth_increment begin handle_success(yield) rescue RailLine::FailureError => exception handle_failure(exception) rescue StandardError => exception handle_standard_error(exception) ensure handle_ensure end end |