blocxx
|
00001 /******************************************************************************* 00002 * Copyright (C) 2005, Vintela, Inc. All rights reserved. 00003 * Copyright (C) 2006, Novell, Inc. All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions are met: 00007 * 00008 * * Redistributions of source code must retain the above copyright notice, 00009 * this list of conditions and the following disclaimer. 00010 * * Redistributions in binary form must reproduce the above copyright 00011 * notice, this list of conditions and the following disclaimer in the 00012 * documentation and/or other materials provided with the distribution. 00013 * * Neither the name of 00014 * Vintela, Inc., 00015 * nor Novell, Inc., 00016 * nor the names of its contributors or employees may be used to 00017 * endorse or promote products derived from this software without 00018 * specific prior written permission. 00019 * 00020 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00021 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00022 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00023 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00024 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00025 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00026 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00027 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00028 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00029 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00030 * POSSIBILITY OF SUCH DAMAGE. 00031 *******************************************************************************/ 00032 00033 00038 #ifndef BLOCXX_EXCEPTION_IDS_HPP_INCLUDE_GUARD 00039 #define BLOCXX_EXCEPTION_IDS_HPP_INCLUDE_GUARD 00040 #include "blocxx/BLOCXX_config.h" 00041 00042 namespace BLOCXX_NAMESPACE 00043 { 00044 namespace ExceptionIds 00045 { 00046 // The purpose of this file/namespace is to centralize all the 00047 // exception subclass id numbers, 00048 // in order to to prevent id conflicts. Numbering starts from -1, 00049 // and all numbers in BloCxx must be negative. 00050 00051 // common library 00052 static const int HTTPExceptionId = -3; 00053 static const int XMLParseExceptionId = -4; 00054 static const int AssertionExceptionId = -5; 00055 static const int ValueCastExceptionId = -6; 00056 static const int AuthenticationExceptionId = -7; 00057 static const int UnknownHostExceptionId = -9; 00058 static const int SocketAddressExceptionId = -10; 00059 static const int SocketExceptionId = -11; 00060 static const int SocketTimeoutExceptionId = -12; 00061 static const int ConditionLockExceptionId = -13; 00062 static const int ConditionResourceExceptionId = -14; 00063 static const int ConfigExceptionId = -15; 00064 static const int NULLCOWReferenceExceptionId = -16; 00065 static const int DateTimeExceptionId = -17; 00066 static const int EnumerationExceptionId = -18; 00067 static const int ExecTimeoutExceptionId = -19; 00068 static const int ExecBufferFullExceptionId = -20; 00069 static const int ExecErrorExceptionId = -21; 00070 static const int IOExceptionId = -22; 00071 static const int BadSignatureExceptionId = -23; 00072 static const int LoggerExceptionId = -24; 00073 static const int DeadlockExceptionId = -25; 00074 static const int NoSuchPropertyExceptionId = -26; 00075 static const int NoSuchProviderExceptionId = -27; 00076 static const int NoSuchQualifierExceptionId = -28; 00077 static const int NULLValueExceptionId = -29; 00078 static const int ContextDataNotFoundExceptionId = -30; 00079 static const int OutOfBoundsExceptionId = -31; 00080 static const int FileSystemExceptionId = -32; 00081 static const int RWLockerExceptionId = -33; 00082 static const int NULLReferenceExceptionId = -34; 00083 static const int SelectExceptionId = -35; 00084 static const int SharedLibraryExceptionId = -36; 00085 static const int StringConversionExceptionId = -37; 00086 static const int TimeoutExceptionId = -38; 00087 static const int ThreadExceptionId = -39; 00088 static const int CancellationDeniedExceptionId = -40; 00089 static const int ThreadBarrierExceptionId = -41; 00090 static const int MalformedURLExceptionId = -42; 00091 static const int UUIDExceptionId = -43; 00092 static const int UnnamedPipeExceptionId = -44; 00093 static const int InvalidUTF8ExceptionId = -45; 00094 static const int CmdLineParserExceptionId = -46; 00095 static const int NULLCOWIntrusiveReferenceExceptionId = -47; 00096 static const int LogMessagePatternFormatterExceptionId = -48; 00097 static const int CryptographicRandomNumberExceptionId = -50; 00098 static const int SSLExceptionId = -51; 00099 static const int GenericRWLockImplExceptionId = -52; 00100 00101 static const int MD5ExceptionId = -1003; 00102 00103 // new in BloCxx 00104 static const int IPCMutexExceptionId = -5001; 00105 static const int RegExCompileExceptionId = -5002; 00106 static const int RegExExecuteExceptionId = -5003; 00107 } 00108 } 00109 00110 #endif 00111