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 
BLOCXX_NAMESPACE::ExceptionIds::ExecTimeoutExceptionId
static const int ExecTimeoutExceptionId
Definition: ExceptionIds.hpp:127
BLOCXX_NAMESPACE::ExceptionIds::GenericRWLockImplExceptionId
static const int GenericRWLockImplExceptionId
Definition: ExceptionIds.hpp:159
BLOCXX_NAMESPACE::ExceptionIds::CancellationDeniedExceptionId
static const int CancellationDeniedExceptionId
Definition: ExceptionIds.hpp:148
BLOCXX_NAMESPACE::ExceptionIds::ConditionLockExceptionId
static const int ConditionLockExceptionId
Definition: ExceptionIds.hpp:121
BLOCXX_NAMESPACE::ExceptionIds::TimeoutExceptionId
static const int TimeoutExceptionId
Definition: ExceptionIds.hpp:146
BLOCXX_NAMESPACE::ExceptionIds::XMLParseExceptionId
static const int XMLParseExceptionId
Definition: ExceptionIds.hpp:113
BLOCXX_NAMESPACE::ExceptionIds::ThreadExceptionId
static const int ThreadExceptionId
Definition: ExceptionIds.hpp:147
BLOCXX_NAMESPACE::ExceptionIds::DeadlockExceptionId
static const int DeadlockExceptionId
Definition: ExceptionIds.hpp:133
BLOCXX_NAMESPACE::ExceptionIds::SocketTimeoutExceptionId
static const int SocketTimeoutExceptionId
Definition: ExceptionIds.hpp:120
BLOCXX_NAMESPACE
Taken from RFC 1321.
Definition: AppenderLogger.cpp:48
BLOCXX_NAMESPACE::ExceptionIds::ExecErrorExceptionId
static const int ExecErrorExceptionId
Definition: ExceptionIds.hpp:129
BLOCXX_NAMESPACE::ExceptionIds::SSLExceptionId
static const int SSLExceptionId
Definition: ExceptionIds.hpp:158
BLOCXX_NAMESPACE::ExceptionIds::CryptographicRandomNumberExceptionId
static const int CryptographicRandomNumberExceptionId
Definition: ExceptionIds.hpp:157
BLOCXX_NAMESPACE::ExceptionIds::NULLCOWReferenceExceptionId
static const int NULLCOWReferenceExceptionId
Definition: ExceptionIds.hpp:124
BLOCXX_NAMESPACE::ExceptionIds::ValueCastExceptionId
static const int ValueCastExceptionId
Definition: ExceptionIds.hpp:115
BLOCXX_NAMESPACE::ExceptionIds::LoggerExceptionId
static const int LoggerExceptionId
Definition: ExceptionIds.hpp:132
BLOCXX_NAMESPACE::ExceptionIds::NULLReferenceExceptionId
static const int NULLReferenceExceptionId
Definition: ExceptionIds.hpp:142
BLOCXX_NAMESPACE::ExceptionIds::UnnamedPipeExceptionId
static const int UnnamedPipeExceptionId
Definition: ExceptionIds.hpp:152
BLOCXX_NAMESPACE::ExceptionIds::FileSystemExceptionId
static const int FileSystemExceptionId
Definition: ExceptionIds.hpp:140
BLOCXX_NAMESPACE::ExceptionIds::RegExCompileExceptionId
static const int RegExCompileExceptionId
Definition: ExceptionIds.hpp:165
BLOCXX_NAMESPACE::ExceptionIds::ConditionResourceExceptionId
static const int ConditionResourceExceptionId
Definition: ExceptionIds.hpp:122
BLOCXX_NAMESPACE::ExceptionIds::StringConversionExceptionId
static const int StringConversionExceptionId
Definition: ExceptionIds.hpp:145
BLOCXX_NAMESPACE::ExceptionIds::MalformedURLExceptionId
static const int MalformedURLExceptionId
Definition: ExceptionIds.hpp:150
BLOCXX_NAMESPACE::ExceptionIds::IOExceptionId
static const int IOExceptionId
Definition: ExceptionIds.hpp:130
BLOCXX_NAMESPACE::ExceptionIds::NULLValueExceptionId
static const int NULLValueExceptionId
Definition: ExceptionIds.hpp:137
BLOCXX_NAMESPACE::ExceptionIds::SocketAddressExceptionId
static const int SocketAddressExceptionId
Definition: ExceptionIds.hpp:118
BLOCXX_NAMESPACE::ExceptionIds::ThreadBarrierExceptionId
static const int ThreadBarrierExceptionId
Definition: ExceptionIds.hpp:149
BLOCXX_NAMESPACE::ExceptionIds::RWLockerExceptionId
static const int RWLockerExceptionId
Definition: ExceptionIds.hpp:141
BLOCXX_NAMESPACE::ExceptionIds::NoSuchQualifierExceptionId
static const int NoSuchQualifierExceptionId
Definition: ExceptionIds.hpp:136
BLOCXX_NAMESPACE::ExceptionIds::InvalidUTF8ExceptionId
static const int InvalidUTF8ExceptionId
Definition: ExceptionIds.hpp:153
BLOCXX_NAMESPACE::ExceptionIds::UUIDExceptionId
static const int UUIDExceptionId
Definition: ExceptionIds.hpp:151
BLOCXX_NAMESPACE::ExceptionIds::NoSuchPropertyExceptionId
static const int NoSuchPropertyExceptionId
Definition: ExceptionIds.hpp:134
BLOCXX_NAMESPACE::ExceptionIds::CmdLineParserExceptionId
static const int CmdLineParserExceptionId
Definition: ExceptionIds.hpp:154
BLOCXX_NAMESPACE::ExceptionIds::SocketExceptionId
static const int SocketExceptionId
Definition: ExceptionIds.hpp:119
BLOCXX_NAMESPACE::ExceptionIds::OutOfBoundsExceptionId
static const int OutOfBoundsExceptionId
Definition: ExceptionIds.hpp:139
BLOCXX_NAMESPACE::ExceptionIds::ConfigExceptionId
static const int ConfigExceptionId
Definition: ExceptionIds.hpp:123
BLOCXX_NAMESPACE::ExceptionIds::BadSignatureExceptionId
static const int BadSignatureExceptionId
Definition: ExceptionIds.hpp:131
BLOCXX_NAMESPACE::ExceptionIds::LogMessagePatternFormatterExceptionId
static const int LogMessagePatternFormatterExceptionId
Definition: ExceptionIds.hpp:156
BLOCXX_NAMESPACE::ExceptionIds::EnumerationExceptionId
static const int EnumerationExceptionId
Definition: ExceptionIds.hpp:126
BLOCXX_NAMESPACE::ExceptionIds::NoSuchProviderExceptionId
static const int NoSuchProviderExceptionId
Definition: ExceptionIds.hpp:135
BLOCXX_NAMESPACE::ExceptionIds::NULLCOWIntrusiveReferenceExceptionId
static const int NULLCOWIntrusiveReferenceExceptionId
Definition: ExceptionIds.hpp:155
BLOCXX_NAMESPACE::ExceptionIds::ExecBufferFullExceptionId
static const int ExecBufferFullExceptionId
Definition: ExceptionIds.hpp:128
BLOCXX_NAMESPACE::ExceptionIds::AuthenticationExceptionId
static const int AuthenticationExceptionId
Definition: ExceptionIds.hpp:116
BLOCXX_NAMESPACE::ExceptionIds::SharedLibraryExceptionId
static const int SharedLibraryExceptionId
Definition: ExceptionIds.hpp:144
BLOCXX_NAMESPACE::ExceptionIds::MD5ExceptionId
static const int MD5ExceptionId
Definition: ExceptionIds.hpp:161
BLOCXX_NAMESPACE::ExceptionIds::RegExExecuteExceptionId
static const int RegExExecuteExceptionId
Definition: ExceptionIds.hpp:166
BLOCXX_NAMESPACE::ExceptionIds::ContextDataNotFoundExceptionId
static const int ContextDataNotFoundExceptionId
Definition: ExceptionIds.hpp:138
BLOCXX_NAMESPACE::ExceptionIds::UnknownHostExceptionId
static const int UnknownHostExceptionId
Definition: ExceptionIds.hpp:117
BLOCXX_NAMESPACE::ExceptionIds::HTTPExceptionId
static const int HTTPExceptionId
Definition: ExceptionIds.hpp:112
BLOCXX_NAMESPACE::ExceptionIds::SelectExceptionId
static const int SelectExceptionId
Definition: ExceptionIds.hpp:143
BLOCXX_NAMESPACE::ExceptionIds::IPCMutexExceptionId
static const int IPCMutexExceptionId
Definition: ExceptionIds.hpp:164
BLOCXX_NAMESPACE::ExceptionIds::AssertionExceptionId
static const int AssertionExceptionId
Definition: ExceptionIds.hpp:114
BLOCXX_NAMESPACE::ExceptionIds::DateTimeExceptionId
static const int DateTimeExceptionId
Definition: ExceptionIds.hpp:125