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 <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 <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory
    Steve Dytman <dytman \at pitt.edu>
    Univ. of Pittsburgh         

October 10, 2011

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

Definition at line 38 of file INukeException.h.

Constructor & Destructor Documentation

INukeException::INukeException ( )

Definition at line 39 of file INukeException.cxx.

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.

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

Definition at line 54 of file INukeException.cxx.

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

Definition at line 64 of file INukeException.cxx.

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

Definition at line 45 of file INukeException.h.

45 { fReason = reason; }
string genie::exceptions::INukeException::ShowReason ( void  ) const
inline

Definition at line 47 of file INukeException.h.

Friends And Related Function Documentation

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

Definition at line 31 of file INukeException.cxx.

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.


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