throwFunctions.cc
Go to the documentation of this file.
2 
4 
5 namespace gallery {
6 
7  void
8  throwTreeNotFound(std::string const& treeName)
9  {
11  << "Could not find the TTree named \'" << treeName
12  << "\' in the input file.\nMaybe it is not an art format file or maybe "
13  "it is corrupted.\n";
14  }
15 
16  void
17  throwBranchNotFound(std::string const& branchName)
18  {
20  << "Could not find the TBranch named \'" << branchName
21  << "\' in the input file.\nMaybe it is not an art format file or maybe "
22  "it is corrupted.\n";
23  }
24 
25  void
27  {
29  << "Random access is not allowed.\n"
30  << "Please make sure your gallery::Event was not created using more than "
31  "one file.\n";
32  }
33 
34  void
36  {
38  << "This Event can not be decremented.\n"
39  << "Please make sure atEnd() is not true for this Event.";
40  }
41 } // namespace gallery
std::string string
Definition: nybbler.cc:12
void throwIllegalRandomAccess()
void throwIllegalDecrement()
void throwTreeNotFound(std::string const &treeName)
void throwBranchNotFound(std::string const &branchName)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66