25 #include <boost/exception/diagnostic_information.hpp>
26 #include <boost/exception/errinfo_api_function.hpp>
27 #include <boost/exception/exception.hpp>
28 #include <boost/exception/info.hpp>
29 #include <boost/exception/info_tuple.hpp>
30 #include <boost/throw_exception.hpp>
31 #include <boost/tuple/tuple.hpp>
38 struct Exception :
virtual std::exception,
virtual boost::exception
40 const char*
what() const noexcept
override {
return boost::diagnostic_information_what(*
this); }
43 #define DEV_SIMPLE_EXCEPTION(X) \
44 struct X : virtual Exception \
52 #define DEV_SIMPLE_EXCEPTION_RLP(X) \
53 struct X : virtual RLPException \
82 using errinfo_comment = boost::error_info<struct tag_comment, std::string>;
84 using errinfo_got = boost::error_info<struct tag_got, bigint>;
85 using errinfo_min = boost::error_info<struct tag_min, bigint>;
86 using errinfo_max = boost::error_info<struct tag_max, bigint>;
96 using errinfo_path = boost::error_info<struct tag_path, std::string>;