diff options
author | winsvega <winsvega@mail.ru> | 2015-03-24 04:50:04 +0800 |
---|---|---|
committer | winsvega <winsvega@mail.ru> | 2015-03-24 04:50:04 +0800 |
commit | 1806dcf33cc56760786375bddf1a82b5d07d41ac (patch) | |
tree | 6da494e8ebff351d014603a4a8ff088f97142e83 | |
parent | 158666a2c5306436c5eedc96fb56c1861d842fce (diff) | |
download | dexon-solidity-1806dcf33cc56760786375bddf1a82b5d07d41ac.tar.gz dexon-solidity-1806dcf33cc56760786375bddf1a82b5d07d41ac.tar.zst dexon-solidity-1806dcf33cc56760786375bddf1a82b5d07d41ac.zip |
Exceptions
-rw-r--r-- | transaction.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/transaction.cpp b/transaction.cpp index 77f6ecda..4c57326b 100644 --- a/transaction.cpp +++ b/transaction.cpp @@ -48,6 +48,13 @@ void doTransactionTests(json_spirit::mValue& _v, bool _fillin) if (!txFromRlp.signature().isValid()) BOOST_THROW_EXCEPTION(Exception() << errinfo_comment("transaction from RLP signature is invalid") ); } + catch(Exception const& _e) + { + cnote << i.first; + cnote << "Transaction Exception: " << diagnostic_information(_e); + BOOST_CHECK_MESSAGE(o.count("transaction") == 0, "A transaction object should not be defined because the RLP is invalid!"); + continue; + } catch(...) { BOOST_CHECK_MESSAGE(o.count("transaction") == 0, "A transaction object should not be defined because the RLP is invalid!"); |