• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ServiceErrorCodes.h

Go to the documentation of this file.
00001 /* Copyright (C) 2008 AbiSource Corporation B.V.
00002  *
00003  * This program is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU General Public License
00005  * as published by the Free Software Foundation; either version 2
00006  * of the License, or (at your option) any later version.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00016  * 02110-1301 USA.
00017  */
00018 
00019 #ifndef __SERVICE_ERRORCODES__
00020 #define __SERVICE_ERRORCODES__
00021 
00022 #include "soa.h"
00023 
00024 namespace abicollab {
00025 namespace service {
00026 
00027 enum SOAP_ERROR
00028 {
00029     // generic error (reserved)
00030     SOAP_ERROR_OK = 0x00,
00031     SOAP_ERROR_GENERIC = 0x01,
00032 
00033     // exception soap errors
00034     SOAP_ERROR_GENERIC_EXCEPTION = 0x101,
00035     SOAP_ERROR_DATABASE_EXCEPTION = 0x102,
00036 
00037     // abicollab soap errors
00038     SOAP_ERROR_INVALID_PASSWORD = 0x201,
00039     SOAP_ERROR_INVALID_EMAIL = 0x202,
00040     // TODO: add more errors
00041 
00042     // saveDocument soap errors
00043     SOAP_ERROR_NO_CHANGES = 0x908,
00044 
00045     // openDocument soap errors
00046     // TODO: add more errors
00047 
00048     // publishDocument soap errors
00049     SOAP_ERROR_DUP_FILENAME =  0xB03
00050 };
00051 
00052 SOAP_ERROR error(const soa::SoapFault& fault);
00053 
00054 }
00055 }
00056 
00057 #endif /* __SERVICE_ERRORCODES__ */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1