aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/exceptn.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-24 12:37:35 -0400
committerJack Lloyd <[email protected]>2016-10-24 12:37:35 -0400
commitc7e76399055c792b84071f22c490906576bd4027 (patch)
tree1e70ece726c42755573b876eae9b060337ef0e80 /src/lib/utils/exceptn.h
parentde54f69aa74d98664fb13b0097f61e17322bca04 (diff)
parent331f7d28de21170e74febae53a7f49732ad40256 (diff)
Merge GH #668: Remove Algo_Registry and associated global locks
Diffstat (limited to 'src/lib/utils/exceptn.h')
-rw-r--r--src/lib/utils/exceptn.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h
index bfde49002..798f2240a 100644
--- a/src/lib/utils/exceptn.h
+++ b/src/lib/utils/exceptn.h
@@ -73,6 +73,13 @@ struct BOTAN_DLL Lookup_Error : public Exception
explicit Lookup_Error(const std::string& err) :
Exception(err)
{}
+
+ Lookup_Error(const std::string& type,
+ const std::string& algo,
+ const std::string& provider) :
+ Exception("Unavailable " + type + " " + algo +
+ (provider.empty() ? std::string("") : (" for provider " + provider)))
+ {}
};
/**