Class: Praxis::ErrorHandler
- Inherits:
-
Object
- Object
- Praxis::ErrorHandler
- Defined in:
- lib/praxis/error_handler.rb
Instance Method Summary collapse
Instance Method Details
#handle!(request, error) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/praxis/error_handler.rb', line 5 def handle!(request, error) Application.instance.logger.error error.inspect error.backtrace.each do |line| Application.instance.logger.error line end response = Responses::InternalServerError.new(error: error) response.request = request response.finish end |