BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions
RBDSException Class Reference

General exception with possible name of object and message. More...

#include <RBDSException.hh>

Inheritance diagram for RBDSException:
Inheritance graph
Collaboration diagram for RBDSException:
Collaboration graph

Public Member Functions

 RBDSException (const std::string &messageIn) noexcept
 
 RBDSException (const std::string &nameIn, const std::string &messageIn) noexcept
 
 RBDSException (const RBDSException &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.
 

Detailed Description

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.

Author
Laurie Nevay

Definition at line 34 of file RBDSException.hh.

Constructor & Destructor Documentation

◆ RBDSException() [1/3]

RBDSException::RBDSException ( const std::string &  messageIn)
inlineexplicitnoexcept

Definition at line 37 of file RBDSException.hh.

◆ RBDSException() [2/3]

RBDSException::RBDSException ( const std::string &  nameIn,
const std::string &  messageIn 
)
inlinenoexcept

Definition at line 42 of file RBDSException.hh.

◆ RBDSException() [3/3]

RBDSException::RBDSException ( const RBDSException other)
inlinenoexcept

Definition at line 47 of file RBDSException.hh.

◆ ~RBDSException()

virtual RBDSException::~RBDSException ( )
inlinevirtual

Definition at line 52 of file RBDSException.hh.

Member Function Documentation

◆ AppendToMessage()

void RBDSException::AppendToMessage ( const std::string &  messageIn)
inline

Definition at line 60 of file RBDSException.hh.

◆ SetName()

void RBDSException::SetName ( const std::string &  nameIn)
inline

Allow setting of name later.

Definition at line 59 of file RBDSException.hh.

References completeString, message, and name.

◆ what()

const char * RBDSException::what ( ) const
inlineoverridenoexcept

Override message in std::exception.

Definition at line 55 of file RBDSException.hh.

References completeString, message, and name.

Field Documentation

◆ completeString

std::string RBDSException::completeString

Data to print.

Definition at line 65 of file RBDSException.hh.

Referenced by SetName(), and what().

◆ message

std::string RBDSException::message

Data to print.

Definition at line 64 of file RBDSException.hh.

Referenced by SetName(), and what().

◆ name

std::string RBDSException::name

Data to print.

Definition at line 63 of file RBDSException.hh.

Referenced by SetName(), and what().


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