aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/exceptn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/exceptn.h')
-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