Allow CryptoExceptions to be fatal

This commit is contained in:
Keegan McAllister
2012-03-26 21:02:23 -04:00
parent 519d1ee282
commit ba6387f36c
3 changed files with 15 additions and 5 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ namespace Crypto {
class CryptoException {
public:
string text;
CryptoException( string s_text ) : text( s_text ) {};
bool fatal;
CryptoException( string s_text, bool s_fatal = false )
: text( s_text ), fatal( s_fatal ) {};
};
class Base64Key {