]> jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/src/DataLayer/DataLayerExceptions.cpp
Added the asio framework to start developing a GameServ server
[irc/gameservirc.git] / gameserv-2.0 / libgameservgldl / src / DataLayer / DataLayerExceptions.cpp
1 #include <GameServ/DataLayer/DataLayerExceptions.h>
2 #include <GameServ/GameServException.h>
3 using GameServ::DataLayer::Exceptions::DataLayerException;
4 using GameServ::DataLayer::Exceptions::ResourceException;
5 using GameServ::Exceptions::GameServException;
6
7 DataLayerException::DataLayerException(const string &ErrorMsg, const char *pFilename, int SourceLine)
8 : GameServException(ErrorMsg, pFilename, SourceLine)
9 {
10 }
11 DataLayerException::DataLayerException(const string &ErrorMsg)
12 : GameServException(ErrorMsg)
13 {
14 }
15 DataLayerException::DataLayerException(void)
16 : GameServException("Unidentified Data Layer Exception occurred")
17 {
18 }
19
20 ResourceException::ResourceException(const string &ErrorMsg, const char *pFilename, int SourceLine)
21 : DataLayerException(ErrorMsg, pFilename, SourceLine)
22 {
23 }
24 ResourceException::ResourceException(const string &ErrorMsg)
25 : DataLayerException(ErrorMsg)
26 {
27 }
28 ResourceException::ResourceException(void)
29 : DataLayerException("Failure to initialize, access, free a data resource, database, or file in the data layer library")
30 {
31 }
32