Geant4  10.02.p03
c2_exception Class Reference

the exception class for c2_function operations. More...

#include <c2_function.hh>

Inheritance diagram for c2_exception:
Collaboration diagram for c2_exception:

Public Member Functions

 c2_exception (const char msgcode[])
 construct the exception with an error message More...
 
virtual ~c2_exception () throw ()
 
virtual const char * what () const throw ()
 

Private Attributes

std::string info
 

Detailed Description

the exception class for c2_function operations.

Definition at line 65 of file c2_function.hh.

Constructor & Destructor Documentation

◆ c2_exception()

c2_exception::c2_exception ( const char  msgcode[])
inline

construct the exception with an error message

Parameters
msgcodethe message

Definition at line 69 of file c2_function.hh.

69 : info(msgcode) { }
std::string info
Definition: c2_function.hh:75
Here is the caller graph for this function:

◆ ~c2_exception()

virtual c2_exception::~c2_exception ( )
throw (
)
inlinevirtual

Definition at line 70 of file c2_function.hh.

70 { }

Member Function Documentation

◆ what()

virtual const char* c2_exception::what ( void  ) const
throw (
)
inlinevirtual

Returns a C-style character string describing the general cause of the current error.

Definition at line 73 of file c2_function.hh.

73 { return info.c_str(); }
std::string info
Definition: c2_function.hh:75

Member Data Documentation

◆ info

std::string c2_exception::info
private

Definition at line 75 of file c2_function.hh.


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