summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-01-13 00:23:57 +0000
committerMike Buland <eichlan@xagasoft.com>2009-01-13 00:23:57 +0000
commite771f7c48d38d1c1481b9904d17ed7989d6cd579 (patch)
tree6844b7664f34952b92c7bfd44682e0d6055864c4 /src
parent8f29e7be04b6f2890b47c03d7c76a1726d3f2f73 (diff)
downloadlibbu++-e771f7c48d38d1c1481b9904d17ed7989d6cd579.tar.gz
libbu++-e771f7c48d38d1c1481b9904d17ed7989d6cd579.tar.bz2
libbu++-e771f7c48d38d1c1481b9904d17ed7989d6cd579.tar.xz
libbu++-e771f7c48d38d1c1481b9904d17ed7989d6cd579.zip
Ok...now UnsupportedException has text in it's what.
Diffstat (limited to 'src')
-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