123456789101112131415161718192021222324252627282930 |
- #ifndef BOOST_MYSQL_THROW_ON_ERROR_HPP
- #define BOOST_MYSQL_THROW_ON_ERROR_HPP
- #include <boost/mysql/detail/throw_on_error_loc.hpp>
- namespace boost {
- namespace mysql {
- inline void throw_on_error(error_code err, const diagnostics& diag = {})
- {
- detail::throw_on_error_loc(err, diag, boost::source_location{});
- }
- }
- }
- #endif
|