INukeException.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 
7  Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
8  University of Liverpool & STFC Rutherford Appleton Laboratory
9 
10  Steve Dytman <dytman \at pitt.edu>
11  Univ. of Pittsburgh
12 
13 \created October 10, 2011
14 
15  For the class documentation see the corresponding header file.
16 
17  Important revisions after version 2.0.0 :
18 
19 */
20 //____________________________________________________________________________
21 
24 
25 using std::endl;
26 using namespace genie::exceptions;
27 
28 //___________________________________________________________________________
29 namespace genie {
30  namespace exceptions {
31  ostream & operator<< (ostream& stream, const INukeException & exc)
32  {
33  exc.Print(stream);
34  return stream;
35  }
36  }
37 }
38 //___________________________________________________________________________
40 {
41  this->Init();
42 }
43 //___________________________________________________________________________
45 {
46  this->Copy(exc);
47 }
48 //___________________________________________________________________________
50 {
51 
52 }
53 //___________________________________________________________________________
55 {
56  fReason = "";
57 }
58 //___________________________________________________________________________
60 {
61  fReason = exc.fReason;
62 }
63 //___________________________________________________________________________
64 void INukeException::Print(ostream & stream) const
65 {
66  stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
67 }
68 //___________________________________________________________________________
An exception thrown by SimulateHadronState for kinematics problems. TwoBodyCollision/Kinematics used ...
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
void Print(ostream &stream) const
ostream & operator<<(ostream &stream, const EVGThreadException &exc)
GENIE-defined C++ exceptions.
void Init(void)
Definition: gXSecComp.cxx:138
void Copy(const INukeException &exception)
QTextStream & endl(QTextStream &s)