Module: RailsLens::Analyzers::ErrorHandling
- Included in:
- Base
- Defined in:
- lib/rails_lens/analyzers/error_handling.rb
Overview
Mixin for consistent error handling across analyzers
Instance Method Summary collapse
Instance Method Details
#safe_analyze ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/rails_lens/analyzers/error_handling.rb', line 7 def safe_analyze analyze rescue ActiveRecord::StatementInvalid => e handle_database_error(e) rescue NameError, NoMethodError => e handle_method_error(e) rescue StandardError => e handle_unexpected_error(e) end |