Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 09:58:32

0001 //
0002 // Copyright (c) 2019-2025 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_BAD_FIELD_ACCESS_HPP
0009 #define BOOST_MYSQL_BAD_FIELD_ACCESS_HPP
0010 
0011 #include <exception>
0012 
0013 namespace boost {
0014 namespace mysql {
0015 
0016 /// Exception type thrown when trying to access a \ref field
0017 /// or \ref field_view with an incorrect type.
0018 class bad_field_access : public std::exception
0019 {
0020 public:
0021     /// Returns the error message.
0022     const char* what() const noexcept override { return "bad_value_access"; }
0023 };
0024 
0025 }  // namespace mysql
0026 }  // namespace boost
0027 
0028 #endif