error.hpp

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 #ifndef _OBBY_ERROR_HPP_
00020 #define _OBBY_ERROR_HPP_
00021 
00022 #include <net6/error.hpp>
00023 
00024 namespace obby
00025 {
00026 
00027 namespace login
00028 {
00029         typedef net6::login::error error;
00030 
00031         extern const error ERROR_COLOUR_IN_USE;
00032         extern const error ERROR_WRONG_GLOBAL_PASSWORD;
00033         extern const error ERROR_WRONG_USER_PASSWORD;
00034         extern const error ERROR_PROTOCOL_VERSION_MISMATCH;
00035         extern const error ERROR_NOT_ENCRYPTED;
00036 
00037         extern const error ERROR_MAX;
00038 
00039         std::string errstring(error err);
00040 }
00041 
00042 }
00043 
00044 #endif // _OBBY_ERROR_HPP_

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