MCPcopy Create free account
hub / github.com/LUX-Core/lux / Exception

Class Exception

src/cpp-ethereum/libdevcore/Exceptions.h:39–46  ·  view source on GitHub ↗

Base class for all exceptions.

Source from the content-addressed store, hash-verified

37
38/// Base class for all exceptions.
39struct Exception: virtual std::exception, virtual boost::exception
40{
41 Exception(std::string _message = std::string()): m_message(std::move(_message)) {}
42 const char* what() const noexcept override { return m_message.empty() ? std::exception::what() : m_message.c_str(); }
43
44private:
45 std::string m_message;
46};
47
48#define DEV_SIMPLE_EXCEPTION(X) struct X: virtual Exception { const char* what() const noexcept override { return #X; } }
49

Callers 3

presaleSecretMethod · 0.50
doTransactionTestsFunction · 0.50
doStateTestsFunction · 0.50

Calls

no outgoing calls

Tested by 2

doTransactionTestsFunction · 0.40
doStateTestsFunction · 0.40