123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- #ifndef BOOST_MYSQL_CLIENT_ERRC_HPP
- #define BOOST_MYSQL_CLIENT_ERRC_HPP
- #include <boost/mysql/error_code.hpp>
- #include <boost/mysql/detail/config.hpp>
- #include <boost/system/error_category.hpp>
- namespace boost {
- namespace mysql {
- enum class client_errc : int
- {
-
-
- incomplete_message = 1,
-
-
- protocol_value_error,
-
- server_unsupported,
-
-
- extra_bytes,
-
- sequence_number_mismatch,
-
- unknown_auth_plugin,
-
- auth_plugin_requires_ssl,
-
-
- wrong_num_params,
-
- server_doesnt_support_ssl,
-
-
- metadata_check_failed,
-
-
- num_resultsets_mismatch,
-
- row_type_mismatch,
-
- static_row_parsing_error,
-
- timeout,
-
- cancelled,
-
-
- pool_not_running,
-
- invalid_encoding,
-
- unformattable_value,
-
- format_string_invalid_syntax,
-
-
- format_string_invalid_encoding,
-
- format_string_manual_auto_mix,
-
- format_string_invalid_specifier,
-
-
- format_arg_not_found,
-
-
- unknown_character_set,
-
-
- max_buffer_size_exceeded,
- };
- BOOST_MYSQL_DECL
- const boost::system::error_category& get_client_category() noexcept;
- inline error_code make_error_code(client_errc error)
- {
- return error_code(static_cast<int>(error), get_client_category());
- }
- }
- #ifndef BOOST_MYSQL_DOXYGEN
- namespace system {
- template <>
- struct is_error_code_enum<::boost::mysql::client_errc>
- {
- static constexpr bool value = true;
- };
- }
- #endif
- }
- #ifdef BOOST_MYSQL_HEADER_ONLY
- #include <boost/mysql/impl/error_categories.ipp>
- #endif
- #endif
|