aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-04 14:53:27 +0000
committerlloyd <[email protected]>2010-03-04 14:53:27 +0000
commitc6707f7d0a7ec1cdadce664057e3cbf44123b05f (patch)
tree80f1a5b62c4852845addf6d38288f52dc30bc8fc
parentc3e5a5311abbbffe22f9a0b579649f88e5939685 (diff)
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.
-rw-r--r--src/utils/exceptn.h9
1 files changed, 9 insertions, 0 deletions
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
@@ -142,6 +142,15 @@ struct BOTAN_DLL Decoding_Error : public Invalid_Argument
};
/*
+* Integrity_Failure Exception
+*/
+struct BOTAN_DLL Integrity_Failure : public Exception
+ {
+ Integrity_Failure(const std::string& what) :
+ Exception("Integrity failure: " + what) {}
+ };
+
+/*
* Invalid_OID Exception
*/
struct BOTAN_DLL Invalid_OID : public Decoding_Error