Exception: Hegel::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Hegel::Error
- Defined in:
- lib/hegel/errors.rb,
sig/hegel.rbs
Overview
Raised for errors this library detects: a libhegel call that fails, a
generator built with arguments the engine rejects, a missing native
library. Control flow inside a running test case does not use this class;
the control exceptions below descend from Exception instead, so that a
rescue => e in a test body cannot swallow them.
It lives here rather than in hegel.rb so that a file needing only the exception vocabulary can require this one file. Reaching it through hegel.rb would make every such file depend on the whole library, and hegel.rb requires the library back, which is a load-order cycle.