aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/utils/exceptn.cpp11
-rw-r--r--src/lib/utils/exceptn.h53
2 files changed, 0 insertions, 64 deletions
diff --git a/src/lib/utils/exceptn.cpp b/src/lib/utils/exceptn.cpp
index e6d067f34..4e2bc7b64 100644
--- a/src/lib/utils/exceptn.cpp
+++ b/src/lib/utils/exceptn.cpp
@@ -117,9 +117,6 @@ Key_Not_Set::Key_Not_Set(const std::string& algo) :
Invalid_State("Key not set in " + algo)
{}
-Policy_Violation::Policy_Violation(const std::string& err) :
- Invalid_State("Policy violation: " + err) {}
-
PRNG_Unseeded::PRNG_Unseeded(const std::string& algo) :
Invalid_State("PRNG not seeded: " + algo)
{}
@@ -128,10 +125,6 @@ Algorithm_Not_Found::Algorithm_Not_Found(const std::string& name) :
Lookup_Error("Could not find any algorithm named \"" + name + "\"")
{}
-No_Provider_Found::No_Provider_Found(const std::string& name) :
- Exception("Could not find any provider for algorithm named \"" + name + "\"")
- {}
-
Provider_Not_Found::Provider_Not_Found(const std::string& algo, const std::string& provider) :
Lookup_Error("Could not find provider '" + provider + "' for " + algo)
{}
@@ -172,10 +165,6 @@ System_Error::System_Error(const std::string& msg, int err_code) :
m_error_code(err_code)
{}
-Self_Test_Failure::Self_Test_Failure(const std::string& err) :
- Internal_Error("Self test failed: " + err)
- {}
-
Not_Implemented::Not_Implemented(const std::string& err) :
Exception("Not implemented", err)
{}
diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h
index 442ec91e6..63752d0aa 100644
--- a/src/lib/utils/exceptn.h
+++ b/src/lib/utils/exceptn.h
@@ -377,59 +377,6 @@ class BOTAN_PUBLIC_API(2,0) Invalid_OID final : public Decoding_Error
explicit Invalid_OID(const std::string& oid);
};
-/*
- The following exception types are deprecated, no longer used,
- and will be removed in a future major release
-*/
-
-/**
-* Self Test Failure Exception
-*
-* This exception is no longer used. It will be removed in a future major release.
-*/
-class BOTAN_PUBLIC_API(2,0) Self_Test_Failure final : public Internal_Error
- {
- public:
- BOTAN_DEPRECATED("no longer used") explicit Self_Test_Failure(const std::string& err);
- };
-
-/**
-* No_Provider_Found Exception
-*
-* This exception is no longer used. It will be removed in a future major release.
-*/
-class BOTAN_PUBLIC_API(2,0) No_Provider_Found final : public Exception
- {
- public:
- BOTAN_DEPRECATED("no longer used") explicit No_Provider_Found(const std::string& name);
- };
-
-/**
-* Policy_Violation Exception
-*
-* This exception is no longer used. It will be removed in a future major release.
-*/
-class BOTAN_PUBLIC_API(2,0) Policy_Violation final : public Invalid_State
- {
- public:
- BOTAN_DEPRECATED("no longer used") explicit Policy_Violation(const std::string& err);
- };
-
-/**
-* 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.
-*
-* This exception is no longer used, instead Not_Implemented is thrown.
-* It will be removed in a future major release.
-*/
-class BOTAN_PUBLIC_API(2,0) Unsupported_Argument final : public Invalid_Argument
- {
- public:
- BOTAN_DEPRECATED("no longer used") explicit Unsupported_Argument(const std::string& msg) : Invalid_Argument(msg) {}
- };
-
template<typename E, typename... Args>
inline void do_throw_error(const char* file, int line, const char* func, Args... args)
{