aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/exceptn.h
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-08-09 17:13:29 +0200
committerSimon Warta <[email protected]>2015-08-11 10:50:14 +0200
commit1019b07e02a2ca68798dd9cadfe604dff9c0cc6b (patch)
treeeb555b683b4160742a5c3eefb4ef7ed500efbf4b /src/lib/utils/exceptn.h
parent3b0ab51f41325a20ba0b8113418d9d916d8e2857 (diff)
Add stricter time parsing; Add more tests
Diffstat (limited to 'src/lib/utils/exceptn.h')
-rw-r--r--src/lib/utils/exceptn.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h
index 23ac01cff..7e16a5dec 100644
--- a/src/lib/utils/exceptn.h
+++ b/src/lib/utils/exceptn.h
@@ -20,6 +20,17 @@ typedef std::runtime_error Exception;
typedef std::invalid_argument Invalid_Argument;
/**
+* Unsupported_Argument Exception
+*
+* An argument that is invalid because it is not supported by Botan.
+* It might or might not be valid in another context like a standard.
+*/
+struct BOTAN_DLL Unsupported_Argument : public Invalid_Argument
+ {
+ Unsupported_Argument(const std::string& msg) : Invalid_Argument(msg) {}
+ };
+
+/**
* Invalid_State Exception
*/
struct BOTAN_DLL Invalid_State : public Exception