From c6707f7d0a7ec1cdadce664057e3cbf44123b05f Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 4 Mar 2010 14:53:27 +0000 Subject: Add back the Integrity_Failure exception. For one, removing it causes problems for Monotone, and anyway it is a reasonable exception to have around for signalling MAC validation errors, etc. --- src/utils/exceptn.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/utils/exceptn.h') diff --git a/src/utils/exceptn.h b/src/utils/exceptn.h index 86efebc7c..5e264b916 100644 --- a/src/utils/exceptn.h +++ b/src/utils/exceptn.h @@ -141,6 +141,15 @@ struct BOTAN_DLL Decoding_Error : public Invalid_Argument Invalid_Argument("Decoding error: " + name) {} }; +/* +* Integrity_Failure Exception +*/ +struct BOTAN_DLL Integrity_Failure : public Exception + { + Integrity_Failure(const std::string& what) : + Exception("Integrity failure: " + what) {} + }; + /* * Invalid_OID Exception */ -- cgit v1.2.3