Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:40

0001 //
0002 // Copyright (c) 2019-2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #ifndef BOOST_MYSQL_IMPL_INTERNAL_ERROR_SERVER_ERROR_TO_STRING_HPP
0009 #define BOOST_MYSQL_IMPL_INTERNAL_ERROR_SERVER_ERROR_TO_STRING_HPP
0010 
0011 #include <boost/mysql/detail/config.hpp>
0012 
0013 namespace boost {
0014 namespace mysql {
0015 namespace detail {
0016 
0017 // Returns NULL if this is not a common error (not a member of common_server_errc)
0018 BOOST_MYSQL_DECL
0019 const char* common_error_to_string(int v) noexcept;
0020 
0021 // These return a default string if the error is not known
0022 BOOST_MYSQL_DECL
0023 const char* mysql_error_to_string(int v) noexcept;
0024 
0025 BOOST_MYSQL_DECL
0026 const char* mariadb_error_to_string(int v) noexcept;
0027 
0028 }  // namespace detail
0029 }  // namespace mysql
0030 }  // namespace boost
0031 
0032 #ifdef BOOST_MYSQL_HEADER_ONLY
0033 #include <boost/mysql/impl/internal/error/server_error_to_string.ipp>
0034 #endif
0035 
0036 #endif