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::NievesQELException Class Reference

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

#include <NievesQELException.h>

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

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

Created:
June 2015
License:
Copyright (c) 2003-2024, 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.

References Init().

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

Definition at line 36 of file NievesQELException.cxx.

References Copy().

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.

References fReason.

Referenced by NievesQELException().

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

Definition at line 46 of file NievesQELException.cxx.

References fReason.

Referenced by NievesQELException().

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

Definition at line 56 of file NievesQELException.cxx.

References ShowReason().

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

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

Definition at line 43 of file NievesQELException.h.

References fReason.

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

Definition at line 45 of file NievesQELException.h.

References fReason.

Referenced by Print().

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.

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


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