BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
General exception with possible name of object and message. More...
#include <BDSException.hh>
Public Member Functions | |
BDSException (const std::string &messageIn) noexcept | |
BDSException (const std::string &nameIn, const std::string &messageIn) noexcept | |
BDSException (const BDSException &other) noexcept | |
const char * | what () const noexcept override |
Override message in std::exception. | |
void | SetName (const std::string &nameIn) |
Allow setting of name later. | |
void | AppendToMessage (const std::string &messageIn) |
Data Fields | |
std::string | name |
Data to print. | |
std::string | message |
Data to print. | |
std::string | completeString |
Data to print. | |
General exception with possible name of object and message.
Provide optional name of object the message is associated with. This Can be appended later with SetName() function.
Definition at line 34 of file BDSException.hh.
|
inlineexplicitnoexcept |
Definition at line 37 of file BDSException.hh.
|
inlinenoexcept |
Definition at line 42 of file BDSException.hh.
|
inlinenoexcept |
Definition at line 47 of file BDSException.hh.
|
inlinevirtual |
Definition at line 52 of file BDSException.hh.
|
inline |
Definition at line 60 of file BDSException.hh.
|
inline |
Allow setting of name later.
Definition at line 59 of file BDSException.hh.
References completeString, message, and name.
Referenced by BDSApertureInfo::CheckApertureInfo().
|
inlineoverridenoexcept |
Override message in std::exception.
Definition at line 55 of file BDSException.hh.
References completeString, message, and name.
Referenced by BDSLinkDetectorConstruction::AddLinkCollimatorJaw(), BDSScorerInfo::BDSScorerInfo(), BDSIMLink::BeamOn(), BDSLinkPrimaryGeneratorAction::GeneratePrimaries(), and BDSPrimaryGeneratorAction::GeneratePrimaries().
std::string BDSException::completeString |
std::string BDSException::message |
std::string BDSException::name |