diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-13 02:01:38 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-13 02:01:38 +0000 |
commit | 56d26456174cf9abd58fec38bfd700ed08ec73d8 (patch) | |
tree | d0cb23233f141142338b1b3ebc026f5f6ae8851a | |
parent | d093a607848aa4cce99729d9b301f4888dfa66db (diff) | |
download | libbu++-56d26456174cf9abd58fec38bfd700ed08ec73d8.tar.gz libbu++-56d26456174cf9abd58fec38bfd700ed08ec73d8.tar.bz2 libbu++-56d26456174cf9abd58fec38bfd700ed08ec73d8.tar.xz libbu++-56d26456174cf9abd58fec38bfd700ed08ec73d8.zip |
Exceptions are better, but not all switched over yet.
-rw-r--r-- | src/exceptionbase.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/exceptionbase.h b/src/exceptionbase.h index 0a251e4..4cdbf36 100644 --- a/src/exceptionbase.h +++ b/src/exceptionbase.h | |||
@@ -89,6 +89,17 @@ class name : public Bu::ExceptionBase \ | |||
89 | name( int nCode=0 ) throw (); \ | 89 | name( int nCode=0 ) throw (); \ |
90 | }; | 90 | }; |
91 | 91 | ||
92 | #define subExceptionDeclBegin( name ) \ | ||
93 | class name : public Bu::ExceptionBase \ | ||
94 | { \ | ||
95 | public: \ | ||
96 | name( const char *sFormat, ... ) throw (); \ | ||
97 | name( int nCode, const char *sFormat, ... ) throw(); \ | ||
98 | name( int nCode=0 ) throw (); | ||
99 | |||
100 | #define subExceptionDeclEnd() \ | ||
101 | }; | ||
102 | |||
92 | #define subExceptionDef( name ) \ | 103 | #define subExceptionDef( name ) \ |
93 | name::name( const char *lpFormat, ... ) throw() : \ | 104 | name::name( const char *lpFormat, ... ) throw() : \ |
94 | ExceptionBase( 0 ) \ | 105 | ExceptionBase( 0 ) \ |