EVGThreadException.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2020, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5 
6  Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
7  University of Liverpool & STFC Rutherford Appleton Laboratory
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;
56  fReturnStep = exc.fReturnStep;
57 }
58 //___________________________________________________________________________
59 void EVGThreadException::Print(ostream & stream) const
60 {
61  stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
62 }
63 //___________________________________________________________________________
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
ostream & operator<<(ostream &stream, const EVGThreadException &exc)
void Copy(const EVGThreadException &exception)
GENIE-defined C++ exceptions.
void Print(ostream &stream) const
An exception thrown by EventRecordVisitorI when the normal processing sequence has to be disrupted (f...
void Init(void)
Definition: gXSecComp.cxx:138
QTextStream & endl(QTextStream &s)