Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

errorcodes.h

Go to the documentation of this file.
00001 #ifndef __msn_errorcodes_h__
00002 #define __msn_errorcodes_h__
00003 
00004 /*
00005  * errorcodes.h
00006  * libmsn
00007  *
00008  * Created by Mark Rowe on Mon Mar 22 2004.
00009  * Copyright (c) 2004 Mark Rowe. All rights reserved.
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  */
00025 
00026 #include <string>
00027 #include <list>
00028 #include <msn/switchboardserver.h>
00029 
00047 namespace MSN
00048 {
00051     typedef enum 
00052     {
00053         ERR_SYNTAX_ERROR = 200,
00054         ERR_INVALID_PARAMETER,
00055         
00056         ERR_INVALID_USER = 205,
00057         ERR_FQDN_MISSING,
00058         ERR_ALREADY_LOGIN,
00059         ERR_INVALID_USERNAME,
00060         ERR_INVALID_FRIENDLY_NAME,
00061         ERR_LIST_FULL,
00062         
00063         ERR_ALREADY_THERE = 215,
00064         ERR_NOT_ON_LIST,
00065         
00066         ERR_ALREADY_IN_THE_MODE = 218,
00067         ERR_ALREADY_IN_OPPOSITE_LIST,
00068         
00069         ERR_SWITCHBOARD_FAILED = 280,
00070         ERR_NOTIFY_XFR_FAILED,
00071         
00072         ERR_REQUIRED_FIELDS_MISSING = 300,
00073         ERR_NOT_LOGGED_IN = 302,
00074         
00075         ERR_INTERNAL_SERVER = 500,
00076         ERR_DB_SERVER = 501,
00077         
00078         ERR_FILE_OPERATION = 510,
00079         ERR_MEMORY_ALLOC = 520,
00080         
00081         ERR_SERVER_BUSY = 600,
00082         ERR_SERVER_UNAVAILABLE,
00083         ERR_PEER_NS_DOWN,
00084         ERR_DB_CONNECT,
00085         ERR_SERVER_GOING_DOWN,
00086         
00087         ERR_CREATE_CONNECTION = 707,
00088         
00089         ERR_BLOCKING_WRITE = 711,
00090         ERR_SESSION_OVERLOAD,
00091         ERR_USER_TOO_ACTIVE,
00092         ERR_TOO_MANY_SESSIONS,
00093         ERR_NOT_EXPECTED,
00094         ERR_BAD_FRIEND_FILE = 717,
00095         
00096         ERR_AUTHENTICATION_FAILED = 911,
00097         ERR_NOT_ALLOWED_WHEN_OFFLINE = 913,
00098         ERR_NOT_ACCEPTING_NEW_USERS = 920
00099     } ErrorCodes;
00100 }
00101 
00102 #endif

Generated on Sun Feb 6 19:59:40 2005 for libmsn by  doxygen 1.4.1