From e771f7c48d38d1c1481b9904d17ed7989d6cd579 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 13 Jan 2009 00:23:57 +0000 Subject: Ok...now UnsupportedException has text in it's what. --- src/exceptionbase.cpp | 7 ++++--- src/exceptionbase.h | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src') 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() return nErrorCode; } - -namespace Bu +Bu::UnsupportedException::UnsupportedException() throw() : + ExceptionBase( 0 ) { - subExceptionDef( UnsupportedException ) + setWhat("An unsupperted operation was attempted."); } + 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() : \ namespace Bu { // Exceptions that are so general they could be used anywhere go here. - subExceptionDecl( UnsupportedException ) + class UnsupportedException : public Bu::ExceptionBase + { + public: + UnsupportedException() throw (); + }; } #endif -- cgit v1.2.3