module MtkFramework::ActiveInteractionConcerns::Rescuable

Public Instance Methods

handle_rescue(*args) { |*args| ... } click to toggle source
# File lib/mtk_framework/active_interaction_concerns/rescuable.rb, line 15
def handle_rescue(*args)
  yield(*args)
rescue StandardError => e
  raise unless rescue_with_handler(e)

  if errors.any?
    @_interaction_valid = false
    errors.backtrace = e.backtrace
  end
end