Class: Rediscover::ExceptionHandler
- Inherits:
-
Object
- Object
- Rediscover::ExceptionHandler
- Defined in:
- lib/rediscover/exception_handler.rb
Class Method Summary collapse
Class Method Details
.log(exception) ⇒ Object
16 17 18 |
# File 'lib/rediscover/exception_handler.rb', line 16 def self.log(exception) @@logger.error(exception) end |
.modal(window, exception) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rediscover/exception_handler.rb', line 8 def self.modal(window, exception) self.log(exception) dlg = Rediscover::Dialog::Error.new(window, 'An error occurred: ' + exception.to_s, 'Error') dlg.show_modal end |
.set_logger(logger) ⇒ Object
4 5 6 |
# File 'lib/rediscover/exception_handler.rb', line 4 def self.set_logger(logger) @@logger = logger end |