Public Member Functions | Private Attributes | Friends | List of all members
genie::exceptions::INukeException Class Reference

An exception thrown by SimulateHadronState for kinematics problems. TwoBodyCollision/Kinematics used a lot, has various failure modes. When failure occurs in HAIntranuke, rechoose the fate. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+3.10-2.17-e17-debug/GENIE-Generator/src/Physics/HadronTransport/INukeException.h"

Public Member Functions

 INukeException ()
 
 INukeException (const INukeException &exception)
 
 ~INukeException ()
 
void SetReason (string reason)
 
string ShowReason (void) const
 
void Init (void)
 
void Copy (const INukeException &exception)
 
void Print (ostream &stream) const
 

Private Attributes

string fReason
 

Friends

ostream & operator<< (ostream &stream, const INukeException &exception)
 

Detailed Description

An exception thrown by SimulateHadronState for kinematics problems. TwoBodyCollision/Kinematics used a lot, has various failure modes. When failure occurs in HAIntranuke, rechoose the fate.

Author
Costas Andreopoulos <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

Steve Dytman <dytman pitt.edu> Univ. of Pittsburgh

October 10, 2011

Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 38 of file INukeException.h.

Constructor & Destructor Documentation

INukeException::INukeException ( )

Definition at line 39 of file INukeException.cxx.

References Init().

40 {
41  this->Init();
42 }
INukeException::INukeException ( const INukeException exception)

Definition at line 44 of file INukeException.cxx.

45 {
46  this->Copy(exc);
47 }
void Copy(const INukeException &exception)
INukeException::~INukeException ( )

Definition at line 49 of file INukeException.cxx.

50 {
51 
52 }

Member Function Documentation

void INukeException::Copy ( const INukeException exception)

Definition at line 59 of file INukeException.cxx.

References fReason.

Referenced by ShowReason().

60 {
61  fReason = exc.fReason;
62 }
void INukeException::Init ( void  )

Definition at line 54 of file INukeException.cxx.

Referenced by ShowReason().

55 {
56  fReason = "";
57 }
void INukeException::Print ( ostream &  stream) const

Definition at line 64 of file INukeException.cxx.

References allTimeWatchdog::endl.

Referenced by genie::exceptions::operator<<(), and ShowReason().

65 {
66  stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
67 }
void genie::exceptions::INukeException::SetReason ( string  reason)
inline
string genie::exceptions::INukeException::ShowReason ( void  ) const
inline

Definition at line 47 of file INukeException.h.

References Copy(), fReason, Init(), operator<<, Print(), and runNovaSAM::stream.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const INukeException exception 
)
friend

Definition at line 31 of file INukeException.cxx.

Referenced by ShowReason().

32  {
33  exc.Print(stream);
34  return stream;
35  }

Member Data Documentation

string genie::exceptions::INukeException::fReason
private

Definition at line 58 of file INukeException.h.

Referenced by Copy(), SetReason(), and ShowReason().


The documentation for this class was generated from the following files: