error.cpp

Go to the documentation of this file.
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 #include "serialise/error.hpp"
00020 
00021 obby::serialise::error::error(
00022         const std::string& msg,
00023         unsigned int line
00024 ):
00025         std::runtime_error(msg), m_line(line)
00026 {
00027 }
00028 
00029 unsigned int obby::serialise::error::get_line() const
00030 {
00031         return m_line;
00032 }

Generated on Fri Jan 11 10:01:32 2008 for obby by  doxygen 1.5.1