NievesQELException.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  Steve Dytman <dytman \at pitt.edu>
7  Univ. of Pittsburgh
8 
9  Joe Johnston <jpj13 \at pitt.edu>
10  Univ. of Pittsburgh
11 */
12 //____________________________________________________________________________
13 
16 
17 using std::endl;
18 using namespace genie::exceptions;
19 
20 //___________________________________________________________________________
21 namespace genie {
22  namespace exceptions {
23  ostream & operator<< (ostream& stream, const NievesQELException & exc)
24  {
25  exc.Print(stream);
26  return stream;
27  }
28  }
29 }
30 //___________________________________________________________________________
32 {
33  this->Init();
34 }
35 //___________________________________________________________________________
37 {
38  this->Copy(exc);
39 }
40 //___________________________________________________________________________
42 {
43 
44 }
45 //___________________________________________________________________________
47 {
48  fReason = "";
49 }
50 //___________________________________________________________________________
52 {
53  fReason = exc.fReason;
54 }
55 //___________________________________________________________________________
56 void NievesQELException::Print(ostream & stream) const
57 {
58  stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
59 }
60 //___________________________________________________________________________
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
ostream & operator<<(ostream &stream, const EVGThreadException &exc)
void Print(ostream &stream) const
GENIE-defined C++ exceptions.
An exception thrown by NievesQELCCPXSec for kinematics problems. When failure occurs, set xsec = 0.
void Init(void)
Definition: gXSecComp.cxx:138
void Copy(const NievesQELException &exception)
QTextStream & endl(QTextStream &s)