Exception: Oddb2xml::NoSubstancesError
- Inherits:
-
StandardError
- Object
- StandardError
- Oddb2xml::NoSubstancesError
- Defined in:
- lib/oddb2xml/util.rb
Overview
Raised by Builder when an -e/--extended or --artikelstamm build ends up with no substances at all: the SL source (FHIR NDJSON or BAG Preparations.xml) came back empty, so the feed would be useless. bin/oddb2xml turns it into exit status 2; under RSpec it is an ordinary exception. Builder used to call Kernel#exit here, which killed the host process -- inside rspec that ended the run after a random number of examples with a summary line reading "0 failures", so the suite looked green for months while exiting 2.