class Routemaster::Middleware::ErrorHandling
Constants
- ERRORS_MAPPING
Public Instance Methods
on_complete(env)
click to toggle source
# File lib/routemaster/middleware/error_handling.rb, line 23 def on_complete(env) ERRORS_MAPPING.each do |range, error_class| if range.include?(env[:status]) raise error_class.new(env) end end end