diff options
author | chriseth <chris@ethereum.org> | 2017-03-01 23:08:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 23:08:37 +0800 |
commit | 6ac2c15c2bbcce77cf60e5a1d6bb78b924609af7 (patch) | |
tree | f696d008ca98b90868d349e5172256020a8bd76a /libdevcore/Exceptions.h | |
parent | d2c79bf8e9400f783bf0feed34065882eae02a68 (diff) | |
parent | 41360ccd57997edfd6807c75a33f4dbc4b65558b (diff) | |
download | dexon-solidity-6ac2c15c2bbcce77cf60e5a1d6bb78b924609af7.tar dexon-solidity-6ac2c15c2bbcce77cf60e5a1d6bb78b924609af7.tar.gz dexon-solidity-6ac2c15c2bbcce77cf60e5a1d6bb78b924609af7.tar.bz2 dexon-solidity-6ac2c15c2bbcce77cf60e5a1d6bb78b924609af7.tar.lz dexon-solidity-6ac2c15c2bbcce77cf60e5a1d6bb78b924609af7.tar.xz dexon-solidity-6ac2c15c2bbcce77cf60e5a1d6bb78b924609af7.tar.zst dexon-solidity-6ac2c15c2bbcce77cf60e5a1d6bb78b924609af7.zip |
Merge pull request #1719 from ethereum/fuzzerLine
Filter fuzzing errors by cause.
Diffstat (limited to 'libdevcore/Exceptions.h')
-rw-r--r-- | libdevcore/Exceptions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdevcore/Exceptions.h b/libdevcore/Exceptions.h index 4622774a..37cdbed9 100644 --- a/libdevcore/Exceptions.h +++ b/libdevcore/Exceptions.h @@ -41,6 +41,9 @@ struct Exception: virtual std::exception, virtual boost::exception Exception(std::string _message = std::string()): m_message(std::move(_message)) {} const char* what() const noexcept override { return m_message.empty() ? std::exception::what() : m_message.c_str(); } + /// @returns "FileName:LineNumber" referring to the point where the exception was thrown. + std::string lineInfo() const; + private: std::string m_message; }; |