blocxx
ExceptionIds.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright (C) 2005, Vintela, Inc. All rights reserved.
3 * Copyright (C) 2006, Novell, Inc. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * * Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * * Neither the name of
14 * Vintela, Inc.,
15 * nor Novell, Inc.,
16 * nor the names of its contributors or employees may be used to
17 * endorse or promote products derived from this software without
18 * specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 *******************************************************************************/
32 
33 
38 #ifndef BLOCXX_EXCEPTION_IDS_HPP_INCLUDE_GUARD
39 #define BLOCXX_EXCEPTION_IDS_HPP_INCLUDE_GUARD
40 #include "blocxx/BLOCXX_config.h"
41 
42 namespace BLOCXX_NAMESPACE
43 {
44  namespace ExceptionIds
45  {
46  // The purpose of this file/namespace is to centralize all the
47  // exception subclass id numbers,
48  // in order to to prevent id conflicts. Numbering starts from -1,
49  // and all numbers in BloCxx must be negative.
50 
51  // common library
52  static const int HTTPExceptionId = -3;
53  static const int XMLParseExceptionId = -4;
54  static const int AssertionExceptionId = -5;
55  static const int ValueCastExceptionId = -6;
56  static const int AuthenticationExceptionId = -7;
57  static const int UnknownHostExceptionId = -9;
58  static const int SocketAddressExceptionId = -10;
59  static const int SocketExceptionId = -11;
60  static const int SocketTimeoutExceptionId = -12;
61  static const int ConditionLockExceptionId = -13;
62  static const int ConditionResourceExceptionId = -14;
63  static const int ConfigExceptionId = -15;
64  static const int NULLCOWReferenceExceptionId = -16;
65  static const int DateTimeExceptionId = -17;
66  static const int EnumerationExceptionId = -18;
67  static const int ExecTimeoutExceptionId = -19;
68  static const int ExecBufferFullExceptionId = -20;
69  static const int ExecErrorExceptionId = -21;
70  static const int IOExceptionId = -22;
71  static const int BadSignatureExceptionId = -23;
72  static const int LoggerExceptionId = -24;
73  static const int DeadlockExceptionId = -25;
74  static const int NoSuchPropertyExceptionId = -26;
75  static const int NoSuchProviderExceptionId = -27;
76  static const int NoSuchQualifierExceptionId = -28;
77  static const int NULLValueExceptionId = -29;
78  static const int ContextDataNotFoundExceptionId = -30;
79  static const int OutOfBoundsExceptionId = -31;
80  static const int FileSystemExceptionId = -32;
81  static const int RWLockerExceptionId = -33;
82  static const int NULLReferenceExceptionId = -34;
83  static const int SelectExceptionId = -35;
84  static const int SharedLibraryExceptionId = -36;
85  static const int StringConversionExceptionId = -37;
86  static const int TimeoutExceptionId = -38;
87  static const int ThreadExceptionId = -39;
88  static const int CancellationDeniedExceptionId = -40;
89  static const int ThreadBarrierExceptionId = -41;
90  static const int MalformedURLExceptionId = -42;
91  static const int UUIDExceptionId = -43;
92  static const int UnnamedPipeExceptionId = -44;
93  static const int InvalidUTF8ExceptionId = -45;
94  static const int CmdLineParserExceptionId = -46;
95  static const int NULLCOWIntrusiveReferenceExceptionId = -47;
96  static const int LogMessagePatternFormatterExceptionId = -48;
97  static const int CryptographicRandomNumberExceptionId = -50;
98  static const int SSLExceptionId = -51;
99  static const int GenericRWLockImplExceptionId = -52;
100 
101  static const int MD5ExceptionId = -1003;
102 
103  // new in BloCxx
104  static const int IPCMutexExceptionId = -5001;
105  static const int RegExCompileExceptionId = -5002;
106  static const int RegExExecuteExceptionId = -5003;
107  }
108 }
109 
110 #endif
111