Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Framework
Interaction
InteractionException.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
Jeremy Wolcott <jwolcott \at fnal.gov>
7
Tufts University
8
*/
9
//____________________________________________________________________________
10
11
12
#include <iostream>
13
14
#include "
InteractionException.h
"
15
16
namespace
genie
17
{
18
namespace
exceptions
19
{
20
21
InteractionException::InteractionException
()
22
: fReason(
""
)
23
{}
24
25
InteractionException::InteractionException
(
const
std::string
& reason)
26
:
fReason
(reason)
27
{}
28
29
void
InteractionException::Print
(std::ostream&
stream
)
const
30
{
31
stream <<
"**EXCEPTION Reason: "
<< this->
ShowReason
() <<
std::endl
;
32
}
33
34
}
/* namespace exceptions */
35
}
/* namespace genie */
36
37
std::ostream &
operator<<
(std::ostream&
stream
,
const
genie::exceptions::InteractionException
& exc)
38
{
39
exc.
Print
(stream);
40
return
stream
;
41
}
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
AlgCmp.h:25
InteractionException.h
genie::exceptions::InteractionException::fReason
std::string fReason
Definition:
InteractionException.h:45
string
std::string string
Definition:
nybbler.cc:12
genie::exceptions::InteractionException::InteractionException
InteractionException()
Definition:
InteractionException.cxx:21
genie::exceptions::InteractionException::ShowReason
const std::string & ShowReason() const
Definition:
InteractionException.h:37
genie::exceptions::InteractionException
Exception used inside Interaction classes.
Definition:
InteractionException.h:29
genie::exceptions::InteractionException::operator<<
friend std::ostream & operator<<(std::ostream &stream, const InteractionException &exception)
Definition:
InteractionException.cxx:37
generate_datataset.stream
stream
Definition:
generate_datataset.py:30
genie::exceptions::InteractionException::Print
void Print(std::ostream &stream) const
Definition:
InteractionException.cxx:29
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11