aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exceptionbase.cpp7
-rw-r--r--src/exceptionbase.h6
2 files changed, 9 insertions, 4 deletions
diff --git a/src/exceptionbase.cpp b/src/exceptionbase.cpp
index 207fa47..a3b10af 100644
--- a/src/exceptionbase.cpp
+++ b/src/exceptionbase.cpp
@@ -84,8 +84,9 @@ int Bu::ExceptionBase::getErrorCode()
84 return nErrorCode; 84 return nErrorCode;
85} 85}
86 86
87 87Bu::UnsupportedException::UnsupportedException() throw() :
88namespace Bu 88 ExceptionBase( 0 )
89{ 89{
90 subExceptionDef( UnsupportedException ) 90 setWhat("An unsupperted operation was attempted.");
91} 91}
92
diff --git a/src/exceptionbase.h b/src/exceptionbase.h
index 6402481..de63177 100644
--- a/src/exceptionbase.h
+++ b/src/exceptionbase.h
@@ -181,7 +181,11 @@ name::name( const name &e ) throw() : \
181namespace Bu 181namespace Bu
182{ 182{
183 // Exceptions that are so general they could be used anywhere go here. 183 // Exceptions that are so general they could be used anywhere go here.
184 subExceptionDecl( UnsupportedException ) 184 class UnsupportedException : public Bu::ExceptionBase
185 {
186 public:
187 UnsupportedException() throw ();
188 };
185} 189}
186 190
187#endif 191#endif