![]() |
Home | Libraries | People | FAQ | More |
Throws an exception in case of error, including diagnostic information.
Defined in header <boost/mysql/throw_on_error.hpp>
void throw_on_error( error_code err, const diagnostics& diag = {});
If err indicates a failure (err.failed() == true
),
throws an exception that derives from error_with_diagnostics
. The exception
will make diag
available
in error_with_diagnostics::get_diagnostics
.
Convenience header <boost/mysql.hpp>