00001 /* 00002 * Copyright (C) 2004 Ivo Danihelka (ivo@danihelka.net) 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 */ 00009 #include "ImgException.h" 00010 00011 #include "SDL_image.h" 00012 00013 //----------------------------------------------------------------- 00014 /** 00015 * Add IMG_GetError to info. 00016 * @param problem detail info 00017 */ 00018 ImgException::ImgException(const ExInfo &problem) 00019 : BaseException(ExInfo(problem).addInfo("IMG", IMG_GetError())) 00020 { 00021 /* empty */ 00022 }