class Plaza::Middleware::Exceptions
Public Instance Methods
call(env)
click to toggle source
# File lib/plaza/middleware/exceptions.rb, line 5 def call(env) begin @app.call(env) rescue Faraday::Error::ConnectionFailed => e error = Plaza::ConnectionError.new(nil, 'Service is not available.') raise(error, error.to_s) end end