diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-03 00:28:59 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-03 00:28:59 +0000 |
commit | ac517a2b7625e0aa0862679e961c6349f859ea3b (patch) | |
tree | e3e27a6b9bd5e2be6150088495c91fc91786ad9d /src/exceptionbase.cpp | |
parent | f8d4301e9fa4f3709258505941e37fab2eadadc6 (diff) | |
parent | bd865cee5f89116c1f054cd0e5c275e97c2d0a9b (diff) | |
download | libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.gz libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.bz2 libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.xz libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.zip |
The reorg is being put in trunk, I think it's ready. Now we just get to find
out how many applications won't work anymore :)
Diffstat (limited to '')
-rw-r--r-- | src/exceptionbase.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/exceptionbase.cpp b/src/exceptionbase.cpp index f3d22da..f6ec625 100644 --- a/src/exceptionbase.cpp +++ b/src/exceptionbase.cpp | |||
@@ -1,7 +1,7 @@ | |||
1 | #include "exceptionbase.h" | 1 | #include "exceptionbase.h" |
2 | #include <stdarg.h> | 2 | #include <stdarg.h> |
3 | 3 | ||
4 | ExceptionBase::ExceptionBase( const char *lpFormat, ... ) throw() : | 4 | Bu::ExceptionBase::ExceptionBase( const char *lpFormat, ... ) throw() : |
5 | nErrorCode( 0 ), | 5 | nErrorCode( 0 ), |
6 | sWhat( NULL ) | 6 | sWhat( NULL ) |
7 | { | 7 | { |
@@ -12,7 +12,7 @@ ExceptionBase::ExceptionBase( const char *lpFormat, ... ) throw() : | |||
12 | va_end(ap); | 12 | va_end(ap); |
13 | } | 13 | } |
14 | 14 | ||
15 | ExceptionBase::ExceptionBase( int nCode, const char *lpFormat, ... ) throw() : | 15 | Bu::ExceptionBase::ExceptionBase( int nCode, const char *lpFormat, ... ) throw() : |
16 | nErrorCode( nCode ), | 16 | nErrorCode( nCode ), |
17 | sWhat( NULL ) | 17 | sWhat( NULL ) |
18 | { | 18 | { |
@@ -23,13 +23,13 @@ ExceptionBase::ExceptionBase( int nCode, const char *lpFormat, ... ) throw() : | |||
23 | va_end(ap); | 23 | va_end(ap); |
24 | } | 24 | } |
25 | 25 | ||
26 | ExceptionBase::ExceptionBase( int nCode ) throw() : | 26 | Bu::ExceptionBase::ExceptionBase( int nCode ) throw() : |
27 | nErrorCode( nCode ), | 27 | nErrorCode( nCode ), |
28 | sWhat( NULL ) | 28 | sWhat( NULL ) |
29 | { | 29 | { |
30 | } | 30 | } |
31 | 31 | ||
32 | ExceptionBase::~ExceptionBase() throw() | 32 | Bu::ExceptionBase::~ExceptionBase() throw() |
33 | { | 33 | { |
34 | if( sWhat ) | 34 | if( sWhat ) |
35 | { | 35 | { |
@@ -38,7 +38,7 @@ ExceptionBase::~ExceptionBase() throw() | |||
38 | } | 38 | } |
39 | } | 39 | } |
40 | 40 | ||
41 | void ExceptionBase::setWhat( const char *lpFormat, va_list &vargs ) | 41 | void Bu::ExceptionBase::setWhat( const char *lpFormat, va_list &vargs ) |
42 | { | 42 | { |
43 | if( sWhat ) delete[] sWhat; | 43 | if( sWhat ) delete[] sWhat; |
44 | int nSize; | 44 | int nSize; |
@@ -48,7 +48,7 @@ void ExceptionBase::setWhat( const char *lpFormat, va_list &vargs ) | |||
48 | vsnprintf( sWhat, nSize+1, lpFormat, vargs ); | 48 | vsnprintf( sWhat, nSize+1, lpFormat, vargs ); |
49 | } | 49 | } |
50 | 50 | ||
51 | void ExceptionBase::setWhat( const char *lpText ) | 51 | void Bu::ExceptionBase::setWhat( const char *lpText ) |
52 | { | 52 | { |
53 | if( sWhat ) delete[] sWhat; | 53 | if( sWhat ) delete[] sWhat; |
54 | int nSize; | 54 | int nSize; |
@@ -58,12 +58,12 @@ void ExceptionBase::setWhat( const char *lpText ) | |||
58 | strcpy( sWhat, lpText ); | 58 | strcpy( sWhat, lpText ); |
59 | } | 59 | } |
60 | 60 | ||
61 | const char *ExceptionBase::what() const throw() | 61 | const char *Bu::ExceptionBase::what() const throw() |
62 | { | 62 | { |
63 | return sWhat; | 63 | return sWhat; |
64 | } | 64 | } |
65 | 65 | ||
66 | int ExceptionBase::getErrorCode() | 66 | int Bu::ExceptionBase::getErrorCode() |
67 | { | 67 | { |
68 | return nErrorCode; | 68 | return nErrorCode; |
69 | } | 69 | } |