| 1 |
/* |
| 2 |
* Copyright (C) 2004 Ivo Danihelka ([email protected]) |
| 3 |
* |
| 4 |
* This program is free software; you can redistribute it and/or modify |
| 5 |
* it under the terms of the GNU General Public License as published by |
| 6 |
* the Free Software Foundation; either version 2 of the License, or |
| 7 |
* (at your option) any later version. |
| 8 |
*/ |
| 9 |
#include "SDLException.h" |
| 10 |
|
| 11 |
#include "SDL.h" |
| 12 |
|
| 13 |
//----------------------------------------------------------------- |
| 14 |
/** |
| 15 |
* Add SDL_GetError to info. |
| 16 |
* @param problem detail info |
| 17 |
*/ |
| 18 |
SDLException::SDLException(const ExInfo &problem) |
| 19 |
: BaseException(ExInfo(problem).addInfo("SDL", SDL_GetError())) |
| 20 |
{ |
| 21 |
/* empty */ |
| 22 |
} |