Class: GlobalErrorHandler::Handler
- Inherits:
-
Object
- Object
- GlobalErrorHandler::Handler
- Defined in:
- lib/global_error_handler/handler.rb
Instance Method Summary collapse
-
#initialize(env, exception) ⇒ Handler
constructor
A new instance of Handler.
- #process_exception! ⇒ Object
Constructor Details
#initialize(env, exception) ⇒ Handler
Returns a new instance of Handler.
2 3 4 5 6 7 |
# File 'lib/global_error_handler/handler.rb', line 2 def initialize(env, exception) @env = env @exception = exception @controller = @env['action_controller.instance'] @parsed_error = nil end |
Instance Method Details
#process_exception! ⇒ Object
9 10 11 12 13 14 |
# File 'lib/global_error_handler/handler.rb', line 9 def process_exception! return if @env['global_error_handler.proceed_time'] @env['global_error_handler.proceed_time'] = Time.now.utc parse_exception store_exception end |