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

An exception thrown by NievesQELCCPXSec for kinematics problems. When failure occurs, set xsec = 0. More...

#include <NievesQELException.h>

Public Member Functions

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

Private Attributes

string fReason
 

Friends

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

Detailed Description

An exception thrown by NievesQELCCPXSec for kinematics problems. When failure occurs, set xsec = 0.

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

Joe Johnston <jpj13 pitt.edu> Univ. of Pittsburgh

June 2015

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

Definition at line 36 of file NievesQELException.h.

Constructor & Destructor Documentation

NievesQELException::NievesQELException ( )

Definition at line 31 of file NievesQELException.cxx.

32 {
33  this->Init();
34 }
NievesQELException::NievesQELException ( const NievesQELException exception)

Definition at line 36 of file NievesQELException.cxx.

37 {
38  this->Copy(exc);
39 }
void Copy(const NievesQELException &exception)
NievesQELException::~NievesQELException ( )

Definition at line 41 of file NievesQELException.cxx.

42 {
43 
44 }

Member Function Documentation

void NievesQELException::Copy ( const NievesQELException exception)

Definition at line 51 of file NievesQELException.cxx.

52 {
53  fReason = exc.fReason;
54 }
void NievesQELException::Init ( void  )

Definition at line 46 of file NievesQELException.cxx.

47 {
48  fReason = "";
49 }
void NievesQELException::Print ( ostream &  stream) const

Definition at line 56 of file NievesQELException.cxx.

57 {
58  stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
59 }
QTextStream & endl(QTextStream &s)
void genie::exceptions::NievesQELException::SetReason ( string  reason)
inline

Definition at line 43 of file NievesQELException.h.

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

Definition at line 45 of file NievesQELException.h.

Friends And Related Function Documentation

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

Definition at line 23 of file NievesQELException.cxx.

24  {
25  exc.Print(stream);
26  return stream;
27  }

Member Data Documentation

string genie::exceptions::NievesQELException::fReason
private

Definition at line 56 of file NievesQELException.h.


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