GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>

Collaboration diagram for genie::exceptions::INukeException:
Collaboration graph
[legend]

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 cern.ch> University of Liverpool
    Steve Dytman <dytman \at pitt.edu>
    Univ. of Pittsburgh         
Created:
October 10, 2011
License:
Copyright (c) 2003-2024, 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.

References Init().

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

Definition at line 44 of file INukeException.cxx.

References Copy().

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 INukeException().

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

Definition at line 54 of file INukeException.cxx.

References fReason.

Referenced by INukeException().

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

Definition at line 64 of file INukeException.cxx.

References ShowReason().

Referenced by genie::exceptions::operator<<().

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 fReason.

Referenced by Print().

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.

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


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