GENIEGenerator
Loading...
Searching...
No Matches
INukeException.cxx
Go to the documentation of this file.
1//____________________________________________________________________________
2/*
3 Copyright (c) 2003-2025, 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
25using std::endl;
26using namespace genie::exceptions;
27
28//___________________________________________________________________________
29namespace genie {
30 namespace exceptions {
31 ostream & operator<< (ostream& stream, const INukeException & exc)
32 {
33 exc.Print(stream);
34 return stream;
35 }
36 }
37}
38//___________________________________________________________________________
43//___________________________________________________________________________
45{
46 this->Copy(exc);
47}
48//___________________________________________________________________________
53//___________________________________________________________________________
55{
56 fReason = "";
57}
58//___________________________________________________________________________
60{
61 fReason = exc.fReason;
62}
63//___________________________________________________________________________
64void INukeException::Print(ostream & stream) const
65{
66 stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
67}
68//___________________________________________________________________________
void Copy(const INukeException &exception)
void Print(ostream &stream) const
GENIE-defined C++ exceptions.
ostream & operator<<(ostream &stream, const EVGThreadException &exc)
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25