From: Matthias Braun Date: Mon, 29 Nov 2004 00:21:11 +0000 (+0000) Subject: old files X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b9a4cfbb3e403bae2d8ba1509e7ee5cb9b45bb08;p=supertux.git old files SVN-Revision: 2220 --- diff --git a/lib/utils/exceptions.h b/lib/utils/exceptions.h deleted file mode 100644 index fc368f7e6..000000000 --- a/lib/utils/exceptions.h +++ /dev/null @@ -1,49 +0,0 @@ -// $Id$ -// -// SuperTux - A Jump'n Run -// Copyright (C) 2003 Tobias Glaesser -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -#ifndef SUPERTUX_EXCEPTIONS_H -#define SUPERTUX_EXCEPTIONS_H - -// Exceptions -#include -#include - -namespace SuperTux - { - - class SuperTuxException : public std::exception - { - public: - SuperTuxException(const char* _message, const char* _file = "", const unsigned int _line = 0) - : message(_message), file(_file), line(_line) { }; - virtual ~SuperTuxException() throw() { }; - - const char* what() const throw() { return message; }; - const char* what_file() const throw() { return file; }; - const unsigned int what_line() const throw() { return line; }; - - private: - const char* message; - const char* file; - const unsigned int line; - }; - -} - -#endif /*SUPERTUX_EXCEPTIONS_H*/