aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/exceptn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/exceptn.h')
-rw-r--r--src/lib/utils/exceptn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h
index 89b047e1a..4349290e9 100644
--- a/src/lib/utils/exceptn.h
+++ b/src/lib/utils/exceptn.h
@@ -117,8 +117,8 @@ class BOTAN_PUBLIC_API(2,0) PRNG_Unseeded final : public Invalid_State
class BOTAN_DEPRECATED("deprecated") BOTAN_PUBLIC_API(2,0) Policy_Violation final : public Invalid_State
{
public:
- explicit Policy_Violation(const std::string& err);
- ~Policy_Violation() { /* avoid strange MSVC warning */ }
+ explicit Policy_Violation(const std::string& err) :
+ Invalid_State("Policy violation: " + err) {}
};
/**