Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4HadronicException Class Reference

#include <G4HadronicException.hh>

Inheritance diagram for G4HadronicException:
G4HadReentrentException

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 ( G4String  in,
G4int  at,
G4String  mess 
)
inline

Definition at line 36 of file G4HadronicException.hh.

References FatalException, G4cout, G4Exception(), and Report().

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

Definition at line 51 of file G4HadronicException.hh.

51 {}

Member Function Documentation

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

Definition at line 53 of file G4HadronicException.hh.

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

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

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