aboutsummaryrefslogtreecommitdiffstats
path: root/include/exceptn.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-14 03:42:03 +0000
committerlloyd <[email protected]>2008-09-14 03:42:03 +0000
commitde02c2fe44ad7ce5ead3967c22aa689da508eaa0 (patch)
tree9796295c7c69c432417de271d9877ef2c5c4bd97 /include/exceptn.h
parentfc2fbc643aa77f25761cd2f51362c024267c321e (diff)
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).
Diffstat (limited to 'include/exceptn.h')
-rw-r--r--include/exceptn.h9
1 files changed, 0 insertions, 9 deletions
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