Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Physics
HadronTransport
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
22
#include "
Physics/HadronTransport/INukeException.h
"
23
#include "
Framework/Messenger/Messenger.h
"
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
//___________________________________________________________________________
39
INukeException::INukeException
()
40
{
41
this->
Init
();
42
}
43
//___________________________________________________________________________
44
INukeException::INukeException
(
const
INukeException
& exc)
45
{
46
this->Copy(exc);
47
}
48
//___________________________________________________________________________
49
INukeException::~INukeException
()
50
{
51
52
}
53
//___________________________________________________________________________
54
void
INukeException::Init
(
void
)
55
{
56
fReason =
""
;
57
}
58
//___________________________________________________________________________
59
void
INukeException::Copy
(
const
INukeException
& exc)
60
{
61
fReason = exc.
fReason
;
62
}
63
//___________________________________________________________________________
64
void
INukeException::Print
(ostream &
stream
)
const
65
{
66
stream <<
"**EXCEPTION Reason: "
<< this->ShowReason() <<
endl
;
67
}
68
//___________________________________________________________________________
genie::exceptions::INukeException
An exception thrown by SimulateHadronState for kinematics problems. TwoBodyCollision/Kinematics used ...
Definition:
INukeException.h:38
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
AlgCmp.h:25
genie::exceptions::INukeException::Print
void Print(ostream &stream) const
Definition:
INukeException.cxx:64
genie::exceptions::operator<<
ostream & operator<<(ostream &stream, const EVGThreadException &exc)
Definition:
EVGThreadException.cxx:20
genie::exceptions
GENIE-defined C++ exceptions.
Definition:
EVGThreadException.cxx:19
genie::exceptions::INukeException::~INukeException
~INukeException()
Definition:
INukeException.cxx:49
genie::exceptions::INukeException::fReason
string fReason
Definition:
INukeException.h:58
generate_datataset.stream
stream
Definition:
generate_datataset.py:30
Messenger.h
Init
void Init(void)
Definition:
gXSecComp.cxx:138
genie::exceptions::INukeException::Init
void Init(void)
Definition:
INukeException.cxx:54
genie::exceptions::INukeException::INukeException
INukeException()
Definition:
INukeException.cxx:39
genie::exceptions::INukeException::Copy
void Copy(const INukeException &exception)
Definition:
INukeException.cxx:59
INukeException.h
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11