From de02c2fe44ad7ce5ead3967c22aa689da508eaa0 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 14 Sep 2008 03:42:03 +0000 Subject: The Memory_Exhaustion exception was only thrown from mem_pool.cpp, so move in there. Make it a subclass of std::bad_alloc instead of Botan::Exception (this may prove to be a design mistake). --- include/exceptn.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'include') diff --git a/include/exceptn.h b/include/exceptn.h index 7bf486fa7..3bfec2fd2 100644 --- a/include/exceptn.h +++ b/include/exceptn.h @@ -190,15 +190,6 @@ struct BOTAN_DLL Self_Test_Failure : public Internal_Error Internal_Error("Self test failed: " + err) {} }; -/************************************************* -* Memory Allocation Exception * -*************************************************/ -struct BOTAN_DLL Memory_Exhaustion : public Exception - { - Memory_Exhaustion() : - Exception("Ran out of memory, allocation failed") {} - }; - } #endif -- cgit v1.2.3