GENIEGenerator
Loading...
Searching...
No Matches
InteractionException.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 Jeremy Wolcott <jwolcott \at fnal.gov>
7 Tufts University
8*/
9//____________________________________________________________________________
10
11
12#include <iostream>
13
15
16namespace genie
17{
18 namespace exceptions
19 {
20
24
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
37std::ostream & operator<< (std::ostream& stream, const genie::exceptions::InteractionException & exc)
38{
39 exc.Print(stream);
40 return stream;
41}
std::ostream & operator<<(std::ostream &stream, const genie::exceptions::InteractionException &exc)
Exception used inside Interaction classes.
void Print(std::ostream &stream) const
GENIE-defined C++ exceptions.
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25