Module: ActionAI::Rescuable
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveSupport::Rescuable
- Included in:
- Agent
- Defined in:
- lib/action_ai/rescuable.rb
Overview
Action AI Rescuable
Provides rescue_from for AI agents. Wraps agent action processing and job execution to handle configured errors.
Instance Method Summary collapse
-
#handle_exceptions ⇒ Object
:nodoc:.
Instance Method Details
#handle_exceptions ⇒ Object
:nodoc:
20 21 22 23 24 |
# File 'lib/action_ai/rescuable.rb', line 20 def handle_exceptions # :nodoc: yield rescue => exception rescue_with_handler(exception) || raise end |