lib/finite_machine/catchable.rb in finite_machine-0.10.1 vs lib/finite_machine/catchable.rb in finite_machine-0.10.2

- old
+ new

@@ -39,9 +39,12 @@ # Catches error and finds a handler # # @param [Exception] exception # + # @return [Boolean] + # true if handler is found, nil otherwise + # # @api public def catch_error(exception) if handler = handler_for_error(exception) handler.arity.zero? ? handler.call : handler.call(exception) true