diff options
Diffstat (limited to 'src/lib/utils/exceptn.h')
-rw-r--r-- | src/lib/utils/exceptn.h | 7 |
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))) + {} }; /** |