ewmscp  ..
Public Member Functions | Protected Member Functions | List of all members
fatalException Class Reference

class for exceptions that should result in program termination More...

#include <copyRequestTypes.h>

Inheritance diagram for fatalException:
[legend]
Collaboration diagram for fatalException:
[legend]

Public Member Functions

 fatalException (const std::string &aWhat)
 
 fatalException (const char *aWhat)
 
template<typename ... Args>
 fatalException (const Args &... args)
 
 ~fatalException () override=default
 

Protected Member Functions

template<typename ... Args>
std::string argsToString (const Args &... args)
 

Detailed Description

class for exceptions that should result in program termination

Definition at line 11 of file copyRequestTypes.h.

Constructor & Destructor Documentation

◆ fatalException() [1/3]

fatalException::fatalException ( const std::string &  aWhat)
inline

Definition at line 19 of file copyRequestTypes.h.

19 : std::logic_error(aWhat) {};

◆ fatalException() [2/3]

fatalException::fatalException ( const char *  aWhat)
inline

Definition at line 20 of file copyRequestTypes.h.

20 : std::logic_error(aWhat) {};

◆ fatalException() [3/3]

template<typename ... Args>
fatalException::fatalException ( const Args &...  args)
inline

Definition at line 21 of file copyRequestTypes.h.

21 : std::logic_error(argsToString(args...)) {};

◆ ~fatalException()

fatalException::~fatalException ( )
overridedefault

Member Function Documentation

◆ argsToString()

template<typename ... Args>
std::string fatalException::argsToString ( const Args &...  args)
inlineprotected

Definition at line 13 of file copyRequestTypes.h.

13  {
14  std::ostringstream msg;
15  throwcall::conCatString(msg, args...);
16  return msg.str();
17  }

References throwcall::conCatString().

Here is the call graph for this function:

The documentation for this class was generated from the following file:
throwcall::conCatString
void conCatString(std::ostringstream &msg, const T &begin)
Definition: throwcall.h:26
fatalException::argsToString
std::string argsToString(const Args &... args)
Definition: copyRequestTypes.h:13