diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-10-01 16:46:32 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-10-01 16:46:32 +0000 |
commit | d872f7e07c5367f251cf5ebb70a03916251f5306 (patch) | |
tree | 2140986825705e4b6bf35eba8dd556be772888ff /src/exceptions.h | |
parent | 467c255511749f018c4572017c9e0e87275524ac (diff) | |
download | libbu++-d872f7e07c5367f251cf5ebb70a03916251f5306.tar.gz libbu++-d872f7e07c5367f251cf5ebb70a03916251f5306.tar.bz2 libbu++-d872f7e07c5367f251cf5ebb70a03916251f5306.tar.xz libbu++-d872f7e07c5367f251cf5ebb70a03916251f5306.zip |
Ok, NIDS is getting better and better, and I went ahead and cleaned up some
exception related code that's been annoying me. You should no longer have to
include any exception header explicitly for normal operations, every class that
has it's own exception to throw defines it in it's own headers.
This may break some code that uses libbu++, but it's an easy fix, just delete
the include for exceptions.h. Sometime soon I would also like to move from
Bu::ExceptionBase to Bu::Exception, but that will affect a lot more code than
this change did.
Diffstat (limited to 'src/exceptions.h')
-rw-r--r-- | src/exceptions.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/exceptions.h b/src/exceptions.h deleted file mode 100644 index 91e0e6d..0000000 --- a/src/exceptions.h +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2008 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | #ifndef BU_EXCEPTIONS_H | ||
9 | #define BU_EXCEPTIONS_H | ||
10 | |||
11 | #include "bu/exceptionbase.h" | ||
12 | #include <stdarg.h> | ||
13 | |||
14 | namespace Bu | ||
15 | { | ||
16 | subExceptionDecl( XmlException ) | ||
17 | subExceptionDecl( TafException ) | ||
18 | subExceptionDecl( FileException ) | ||
19 | subExceptionDecl( FifoException ) | ||
20 | subExceptionDecl( SocketException ) | ||
21 | subExceptionDecl( ConnectionException ) | ||
22 | subExceptionDecl( PluginException ) | ||
23 | subExceptionDecl( UnsupportedException ) | ||
24 | |||
25 | enum eFileException | ||
26 | { | ||
27 | excodeEOF | ||
28 | }; | ||
29 | |||
30 | enum eConnectionException | ||
31 | { | ||
32 | excodeReadError, | ||
33 | excodeWriteError, | ||
34 | excodeBadReadError, | ||
35 | excodeConnectionClosed, | ||
36 | excodeSocketTimeout | ||
37 | }; | ||
38 | } | ||
39 | |||
40 | #endif | ||