Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronicException Class Reference

#include <G4HadronicException.hh>

+ Inheritance diagram for G4HadronicException:

Public Member Functions

 G4HadronicException (G4String in, G4int at, G4String mess)
 
virtual ~G4HadronicException () throw ()
 
void Report (std::ostream &aS)
 

Detailed Description

Definition at line 33 of file G4HadronicException.hh.

Constructor & Destructor Documentation

◆ G4HadronicException()

G4HadronicException::G4HadronicException ( G4String  in,
G4int  at,
G4String  mess 
)
inline

Definition at line 36 of file G4HadronicException.hh.

37 {
38 theMessage = mess;
39 theName = in;
40 theLine = at;
41
43
44 if(getenv("DumpCoreOnHadronicException") )
45 {
46 G4Exception("G4HadronicException", "007", FatalException,
47 "Fatal problem in above location");
48 }
49
50 }
@ FatalException
G4DLLIMPORT std::ostream G4cout
void Report(std::ostream &aS)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

◆ ~G4HadronicException()

virtual G4HadronicException::~G4HadronicException ( )
throw (
)
inlinevirtual

Definition at line 51 of file G4HadronicException.hh.

51{}

Member Function Documentation

◆ Report()

void G4HadronicException::Report ( std::ostream &  aS)
inline

Definition at line 53 of file G4HadronicException.hh.

54 {
55 aS<< "In " <<theName<<", line "<<theLine<<": "<<std::endl;
56 aS<< "===> "<<theMessage<<std::endl;
57 }

Referenced by G4HadronicProcess::BuildPhysicsTable(), G4HadronicException(), G4HadronicProcess::GetMeanFreePath(), G4HadronicProcess::PostStepDoIt(), G4HadronicProcess::RegisterMe(), and G4HadReentrentException::Report().


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