00001 /* libobby - Network text editing library 00002 * Copyright (C) 2005 0x539 dev group 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2 of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public 00015 * License along with this program; if not, write to the Free 00016 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef _OBBY_SERIALISE_ERROR_HPP_ 00020 #define _OBBY_SERIALISE_ERROR_HPP_ 00021 00022 #include <stdexcept> 00023 00024 namespace obby 00025 { 00026 00027 namespace serialise 00028 { 00029 00032 class error : public std::runtime_error 00033 { 00034 public: 00035 error( 00036 const std::string& msg, 00037 unsigned int line 00038 ); 00039 00040 unsigned int get_line() const; 00041 00042 protected: 00043 unsigned int m_line; 00044 }; 00045 00046 } // namespace serialise 00047 00048 } // namespace obby 00049 00050 #endif // _OBBY_SERIALISE_ERROR_HPP_
1.5.1