GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
INukeException.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 
7  Costas Andreopoulos <c.andreopoulos \at cern.ch>
8  University of Liverpool
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 ...
void Print(ostream &stream) const
ostream & operator<<(ostream &stream, const EVGThreadException &exc)
void Copy(const INukeException &exception)