blob: 5cf525ccbd43f6725969723d98e18f3524d3aeb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "exception.h"
namespace yage
{
FileLoadException::FileLoadException(std::string err) : std::runtime_error("File Load Exception")
{
std::ostringstream msg("");
msg << runtime_error::what() << ": " << err;
err_msg = msg.str();
}
const char *FileLoadException::what() const throw()
{
return err_msg.c_str();
}
} // namespace yage
|