Class: Barbeque::ExceptionHandler::Raven
- Inherits:
-
Object
- Object
- Barbeque::ExceptionHandler::Raven
- Defined in:
- lib/barbeque/exception_handler.rb
Instance Method Summary collapse
- #clear_context ⇒ Object
- #handle_exception(e) ⇒ Object
- #set_message_context(message_id, message_type) ⇒ Object
Instance Method Details
#clear_context ⇒ Object
39 40 41 |
# File 'lib/barbeque/exception_handler.rb', line 39 def clear_context ::Raven::Context.clear! end |
#handle_exception(e) ⇒ Object
50 51 52 |
# File 'lib/barbeque/exception_handler.rb', line 50 def handle_exception(e) ::Raven.capture_exception(e) end |
#set_message_context(message_id, message_type) ⇒ Object
45 46 47 |
# File 'lib/barbeque/exception_handler.rb', line 45 def (, ) ::Raven.(message_id: , message_type: ) end |