Method: Roby::Application#isolate_load_errors
- Defined in:
- lib/roby/app.rb
#isolate_load_errors(message, logger = Application, level = :warn) ⇒ Object
1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 |
# File 'lib/roby/app.rb', line 1870 def isolate_load_errors(, logger = Application, level = :warn) yield rescue Interrupt raise rescue ::Exception => e # rubocop:disable Lint/RescueException register_exception(e, ) if ignore_all_load_errors? Robot.warn Roby.log_exception_with_backtrace(e, logger, level) else raise end end |