diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-04-03 04:50:36 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-04-03 04:50:36 +0000 |
commit | da89e6d30e57bd6dbb10b4d36b093ce9bbf5c666 (patch) | |
tree | 0c8d31d13521011dc52a3fbadbf9e7e27929308f /src/exceptions.h | |
parent | f4c20290509d7ed3a8fd5304577e7a4cc0b9d974 (diff) | |
download | libbu++-da89e6d30e57bd6dbb10b4d36b093ce9bbf5c666.tar.gz libbu++-da89e6d30e57bd6dbb10b4d36b093ce9bbf5c666.tar.bz2 libbu++-da89e6d30e57bd6dbb10b4d36b093ce9bbf5c666.tar.xz libbu++-da89e6d30e57bd6dbb10b4d36b093ce9bbf5c666.zip |
The first batch seem to have made it alright. Unfortunately the Archive class
isn't done yet, I'm going to make it rely on streams, so those will be next,
then we can make it work all sortsa' well.
Diffstat (limited to '')
-rw-r--r-- | src/exceptions.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h new file mode 100644 index 0000000..b28d292 --- /dev/null +++ b/src/exceptions.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef EXCEPTIONS_H | ||
2 | #define EXCEPTIONS_H | ||
3 | |||
4 | #include "exceptionbase.h" | ||
5 | #include <stdarg.h> | ||
6 | |||
7 | namespace Bu | ||
8 | { | ||
9 | subExceptionDecl( XmlException ) | ||
10 | subExceptionDecl( FileException ) | ||
11 | subExceptionDecl( ConnectionException ) | ||
12 | subExceptionDecl( PluginException ) | ||
13 | |||
14 | enum eFileException | ||
15 | { | ||
16 | excodeEOF | ||
17 | }; | ||
18 | |||
19 | enum eConnectionException | ||
20 | { | ||
21 | excodeReadError, | ||
22 | excodeBadReadError, | ||
23 | excodeConnectionClosed, | ||
24 | excodeSocketTimeout | ||
25 | }; | ||
26 | } | ||
27 | |||
28 | #endif | ||