Method: OpenC3.catch_fatal_exception

Defined in:
lib/openc3/top_level.rb

.catch_fatal_exceptionObject

Catch fatal exceptions within the block This is intended to catch exceptions before the GUI is available



354
355
356
357
358
359
360
361
# File 'lib/openc3/top_level.rb', line 354

def self.catch_fatal_exception
  yield
rescue Exception => error
  unless SystemExit === error or SignalException === error
    Logger.level = Logger::FATAL
    OpenC3.handle_fatal_exception(error, false)
  end
end