diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-03-13 02:03:27 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-03-13 02:03:27 +0000 |
commit | b42f4ae645b3dcbffcdc3a49862cdcc183c1d1e1 (patch) | |
tree | 6e128d6c9f5938a349c4d8c8935ddbb8ed5f5ab1 /cryptlib.h | |
parent | a36c71ecb6840ff799546ccaf665e55f6a6ed5dc (diff) | |
download | cryptopp-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) {} }; |