collectiveidea / interactor

Interactor provides a common interface for performing complex user interactions.
MIT License
3.36k stars 212 forks source link

WIP: Abort on failure #56

Closed ersatzryan closed 10 years ago

ersatzryan commented 10 years ago

:warning:

errinlarsen commented 10 years ago

The changes I made in #38 are going to need to be fixed once all of the v3 issues/changes to the interface are stable.

laserlemon commented 10 years ago

The ability to halt execution by failing the context is now in the v3 branch. The failure case still raises an exception, which I believe is appropriate for failure. In the future, when a non-failing halt is added to Interactor, it will use the Ruby's throw/catch mechanism.