GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EVGThreadException.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2024, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5 
6  Costas Andreopoulos <c.andreopoulos \at cern.ch>
7  University of Liverpool
8 */
9 //____________________________________________________________________________
10 
13 
14 using std::endl;
15 using namespace genie::exceptions;
16 
17 //___________________________________________________________________________
18 namespace genie {
19  namespace exceptions {
20  ostream & operator<< (ostream& stream, const EVGThreadException & exc)
21  {
22  exc.Print(stream);
23  return stream;
24  }
25  }
26 }
27 //___________________________________________________________________________
29 {
30  this->Init();
31 }
32 //___________________________________________________________________________
34 {
35  this->Copy(exc);
36 }
37 //___________________________________________________________________________
39 {
40 
41 }
42 //___________________________________________________________________________
44 {
45  fReason = "";
46  fFastFwd = false;
47  fStepBack = false;
48  fReturnStep = 999999;
49 }
50 //___________________________________________________________________________
52 {
53  fReason = exc.fReason;
54  fFastFwd = exc.fFastFwd;
55  fStepBack = exc.fStepBack;
57 }
58 //___________________________________________________________________________
59 void EVGThreadException::Print(ostream & stream) const
60 {
61  stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
62 }
63 //___________________________________________________________________________
ostream & operator<<(ostream &stream, const EVGThreadException &exc)
void Copy(const EVGThreadException &exception)
void Print(ostream &stream) const
An exception thrown by EventRecordVisitorI when the normal processing sequence has to be disrupted (f...