From 76ed3c164662f4ee4c109bb2054c61c99ea86251 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 26 Jul 2006 21:58:35 +0000 Subject: Added the not-yet-working hash class. More thought must be done. This doesn't actually change any existing code really just adds a new class that you can't use because it's commented out. I'll probably move it to a branch. --- src/test/exception/exception.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test/exception') diff --git a/src/test/exception/exception.cpp b/src/test/exception/exception.cpp index 33dcd5e..6417692 100644 --- a/src/test/exception/exception.cpp +++ b/src/test/exception/exception.cpp @@ -1,16 +1,16 @@ #include -#include "exception.h" +#include "exceptions.h" int main() { try { - throw Exception( 42, "There was an error on line: %d", __LINE__ ); + throw ExceptionBase( 42, "There was an error on line: %d", __LINE__ ); } - catch( Exception &e ) + catch( ExceptionBase &e ) { std::cout << "Error "<< e.getErrorCode() << ": " << e.what() << "\n"; } - throw Exception( 112, "This exception wasn't caught!"); + throw ExceptionBase( 112, "This exception wasn't caught!"); } -- cgit v1.2.3