summaryrefslogtreecommitdiff
path: root/cryptlib.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2009-03-13 02:03:27 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2009-03-13 02:03:27 +0000
commitb42f4ae645b3dcbffcdc3a49862cdcc183c1d1e1 (patch)
tree6e128d6c9f5938a349c4d8c8935ddbb8ed5f5ab1 /cryptlib.h
parenta36c71ecb6840ff799546ccaf665e55f6a6ed5dc (diff)
downloadcryptopp-b42f4ae645b3dcbffcdc3a49862cdcc183c1d1e1.tar.gz
clarify error messages
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@445 57ff6487-cd31-0410-9ec3-f628ee90f5f0
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) {}
};