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