Exception: Keiyaku::ConnectionError

Inherits:
Error
  • Object
show all
Defined in:
sig/keiyaku.rbs,
lib/keiyaku/runtime.rb

Overview

The request did not happen: connection refused, DNS failure, a timeout. Every adapter raises this rather than its own library's class, because otherwise the seam leaks — an application that moves a client from Net::HTTP to Faraday would find its rescue quietly matching nothing, and a call it thought it had covered taking the process down. The original is on #cause for anything that does want to know.