SSP21-CPP
ssp21
util
Exception.h
1
2
#ifndef SSP21_EXCEPTION_H
3
#define SSP21_EXCEPTION_H
4
5
#include <stdexcept>
6
#include "ssp21/util/StringUtil.h"
7
8
namespace
ssp21
9
{
10
/**
11
* Super class of std::runtime_error that allows
12
* message to be built dynamically
13
*/
14
class
Exception
:
public
std::runtime_error
15
{
16
17
public
:
18
19
explicit
Exception
(
const
char
* message) : std::runtime_error(message)
20
{
21
22
}
23
24
template
<
class
T,
class
... Args>
25
Exception
(T t, Args... args) :
26
std::runtime_error(ssp21::strings::join(t, args...))
27
{
28
29
}
30
31
};
32
}
33
34
35
#endif
ssp21
SSP21-cpp main namespace.
Definition:
BufferTypes.h:12
ssp21::Exception
Definition:
Exception.h:14
Generated on Tue Apr 9 2019 11:41:41 for SSP21-CPP by
1.8.15