11 #include "art/Framework/Core/EDProducer.h"
12 #include "art/Framework/Core/ModuleMacros.h"
13 #include "canvas/Utilities/Exception.h"
14 #include "fhiclcpp/types/Atom.h"
40 fhicl::Comment(
"number of exceptions to throw")
51 virtual void produce(art::Event&)
override;
70 , fNArtExceptions(config().NArtExceptions())
80 for (
unsigned int i = 0; i < fNArtExceptions; ++i) {
84 catch (art::Exception
const&) {}
93 throw art::Exception(art::errors::LogicError)
94 <<
"I want to annoy you.\n";
art::EDProducer::Table< Config > Parameters
fhicl::Atom< unsigned int > NArtExceptions
virtual void produce(art::Event &) override
Executes the iterations.
static void throwArtException()
Throws a std::out_of_range exception.
BEGIN_PROLOG vertical distance to the surface Name
unsigned int fNArtExceptions
Disturbance(Parameters const &config)
Constructor.