FailingAnalyzer_module.cc
Go to the documentation of this file.
4 
5 namespace arttest {
6  class FailingAnalyzer;
7 }
8 
9 //--------------------------------------------------------------------
10 //
11 // throws an exception.
12 // Every call to FailingAnalyzer::produce throws an art::Exception
13 //
15 public:
16  explicit FailingAnalyzer(fhicl::ParameterSet const&);
17  void analyze(art::Event const& e) override;
18  void makeTrouble(art::Event const& e);
19 };
20 
22  : art::EDAnalyzer(pset)
23 {}
24 
25 void
27 {
28  // Nothing to do.
29 }
30 
31 void
33 {
35  << "Intentional exception for testing purposes\n";
36 }
37 
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:27
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
void makeTrouble(art::Event const &e)
void analyze(art::Event const &e) override
FailingAnalyzer(fhicl::ParameterSet const &)