CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SimG4Exception Class Reference

#include <SimG4Exception.h>

Inheritance diagram for SimG4Exception:

Public Member Functions

 SimG4Exception (const std::string &message)
 
const char * what () const override throw ()
 
 ~SimG4Exception () override throw ()
 

Private Attributes

std::string error_
 

Detailed Description

Generic mantis exception. Can be thrown directly, or derived from. SimG4 should (ideally) only throw exceptions derived from this class.

Definition at line 13 of file SimG4Exception.h.

Constructor & Destructor Documentation

◆ SimG4Exception()

SimG4Exception::SimG4Exception ( const std::string &  message)
inline

Definition at line 15 of file SimG4Exception.h.

15 : error_(message) {}

◆ ~SimG4Exception()

SimG4Exception::~SimG4Exception ( )
throw (
)
inlineoverride

Definition at line 16 of file SimG4Exception.h.

16 {}

Member Function Documentation

◆ what()

const char* SimG4Exception::what ( ) const
throw (
)
inlineoverride

Definition at line 17 of file SimG4Exception.h.

17 { return error_.c_str(); }

References error_.

Referenced by OscarProducer::produce(), and OscarMTProducer::produce().

Member Data Documentation

◆ error_

std::string SimG4Exception::error_
private

Definition at line 20 of file SimG4Exception.h.

Referenced by what().

SimG4Exception::error_
std::string error_
Definition: SimG4Exception.h:20