00001 /* 00002 * Copyright (C) 2006, Jose Renato Santos. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 */ 00017 00018 /////////////////////////////////////////////////////////////////////////////// 00019 // sserror.h : Definition of error codes for storage server 00020 // (These are not error codes sent on messages, 00021 // but error codes returned internally by functions) 00022 /////////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef __SSERROR_H_ 00025 #define __SSERROR_H_ 00026 00027 // Software Error. Probably software bug 00028 // Used when initializing class already initialized or 00029 // performing operation on non initialized class 00030 const int ERROR_SS_PROGRAM_ERROR = -1; 00031 00032 // Out of memory 00033 const int ERROR_SS_MEMORY = -2; 00034 00035 // Error when creating mutex 00036 const int ERROR_SS_MUTEX_CREATION = -3; 00037 00038 // Error when creating semaphore 00039 const int ERROR_SS_SEMAPHORE_CREATION = -4; 00040 00041 // Error when initializing TCP socket 00042 const int ERROR_SS_TCP_INITIALIZATION = -5; 00043 00044 // Error when creating thread 00045 const int ERROR_SS_THREAD_CREATE = -6; 00046 00047 // Invalid device 00048 const int ERROR_SS_INVALID_DEVICE = -7; 00049 00050 #ifdef RIO_DEBUG2 00051 // New erros used when depurating search logs implementation. 00052 00053 // Error when initializing a search in logs. 00054 const int ERROR_SS_SEARCH_IN_LOGS = -8; 00055 00056 // Error when reading a block of a search result file (in the logs). 00057 const int ERROR_SS_SEARCH_FILE_BLOCK = -9; 00058 00059 // Error when removing a search result file (in the logs). 00060 const int ERROR_SS_REMOVE_SEARCH_FILE = -10; 00061 #endif 00062 00063 #endif // __SSERROR_H_