B15F
Board 15 Famulus Edition
drv
driverexception.h
1
#ifndef DRIVEREXCEPTION_H
2
#define DRIVEREXCEPTION_H
3
4
#include <exception>
5
6
// SOURCE: https://stackoverflow.com/a/8152888
7
10
class
DriverException
:
public
std::exception
11
{
12
public
:
17
explicit
DriverException
(
const
char
* message) :
msg_
(message)
18
{
19
}
20
25
explicit
DriverException
(
const
std::string& message) :
msg_
(message)
26
{
27
}
28
32
virtual
~DriverException
() throw ()
33
{
34
}
35
40
virtual
const
char
*
what
()
const
throw ()
41
{
42
return
msg_
.c_str();
43
}
44
45
protected
:
46
std::string
msg_
;
47
};
48
49
#endif // DRIVEREXCEPTION_H
50
DriverException::what
virtual const char * what() const
Definition:
driverexception.h:40
DriverException::DriverException
DriverException(const char *message)
Definition:
driverexception.h:17
DriverException::msg_
std::string msg_
failure description
Definition:
driverexception.h:46
DriverException::DriverException
DriverException(const std::string &message)
Definition:
driverexception.h:25
DriverException::~DriverException
virtual ~DriverException()
Definition:
driverexception.h:32
DriverException
Definition:
driverexception.h:10
Generated on Tue Dec 3 2019 07:42:51 for B15F by
1.8.16