Exception: Unmagic::Browser::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/unmagic/browser/error.rb

Overview

The base class every failure in this gem inherits from.

Failures are typed so callers classify them by rescuing, never by parsing a message — messages carry target URLs and service internals that aren't a stable contract.

Examples:

begin
  browser.markdown(url)
rescue Unmagic::Browser::Error::TimedOut
  # the page took too long
rescue Unmagic::Browser::Error
  # anything else
end

Direct Known Subclasses

Console::NothingOpen

Defined Under Namespace

Classes: Misconfigured, NotFound, RateLimited, RenderFailed, SessionClosed, TimedOut, Unreachable