Menu

[860f38]: / d2cpp / BaseException.cpp  Maximize  Restore  History

Download this file

25 lines (21 with data), 496 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "BaseException.h"
//-----------------------------------------------------------------
/**
* Mother of all exception.
* @param ExInfo info about problem
*/
BaseException::BaseException(const ExInfo &exinfo)
: std::exception(), m_what(exinfo.what())
{
/* empty */
}
//-----------------------------------------------------------------
/**
* Return info about exception.
* @return detailed info
*/
const char *
BaseException::what() const throw()
{
return m_what.c_str();
}