GENIEGenerator
Loading...
Searching...
No Matches
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 <c.andreopoulos \at cern.ch> University of Liverpool
    Steve Dytman <dytman \at pitt.edu>
    Univ. of Pittsburgh         
Created:\n October 10, 2011
License:\n Copyright (c) 2003-2025, 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() [1/2]

INukeException::INukeException ( )

Definition at line 39 of file INukeException.cxx.

40{
41 this->Init();
42}

References Init().

Referenced by Copy(), INukeException(), and operator<<.

◆ INukeException() [2/2]

INukeException::INukeException ( const INukeException & exception)

Definition at line 44 of file INukeException.cxx.

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

References Copy(), and INukeException().

◆ ~INukeException()

INukeException::~INukeException ( )

Definition at line 49 of file INukeException.cxx.

50{
51
52}

Member Function Documentation

◆ Copy()

void INukeException::Copy ( const INukeException & exception)

Definition at line 59 of file INukeException.cxx.

60{
61 fReason = exc.fReason;
62}

References fReason, and INukeException().

Referenced by INukeException().

◆ Init()

void INukeException::Init ( void )

Definition at line 54 of file INukeException.cxx.

55{
56 fReason = "";
57}

References fReason.

Referenced by INukeException().

◆ Print()

void INukeException::Print ( ostream & stream) const

Definition at line 64 of file INukeException.cxx.

65{
66 stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
67}

References ShowReason().

Referenced by operator<<.

◆ SetReason()

◆ ShowReason()

string genie::exceptions::INukeException::ShowReason ( void ) const
inline

Definition at line 47 of file INukeException.h.

47{ return fReason; }

References fReason.

Referenced by Print().

◆ operator<<

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 }

References INukeException(), and Print().

Member Data Documentation

◆ fReason

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

Definition at line 58 of file INukeException.h.

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


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