summaryrefslogtreecommitdiff
path: root/cryptlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'cryptlib.h')
-rw-r--r--cryptlib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cryptlib.h b/cryptlib.h
index 9316258..33b1e01 100644
--- a/cryptlib.h
+++ b/cryptlib.h
@@ -642,6 +642,7 @@ public:
class BadState : public Exception
{
public:
+ explicit BadState(const std::string &name, const char *message) : Exception(OTHER_ERROR, name + ": " + message) {}
explicit BadState(const std::string &name, const char *function, const char *state) : Exception(OTHER_ERROR, name + ": " + function + " was called before " + state) {}
};