Exception: TocDoc::ConnectionError

Inherits:
Error
  • Object
show all
Defined in:
lib/toc_doc/core/error.rb

Overview

Raised when a network-level failure occurs before an HTTP response is received (e.g. DNS resolution failure, connection refused, timeout).

The original low-level exception is available via Ruby's built-in +#cause+ mechanism — no extra attribute needed.

Examples:

rescue TocDoc::ConnectionError => e
  puts e.cause  # original Faraday::ConnectionFailed, etc.