The Battle for Wesnoth  1.15.3+dev
last_error.hpp
Go to the documentation of this file.
1 //
2 // M A R I A D B + +
3 //
4 // Copyright Sylvain Rochette Langlois 2013,
5 // The ViaDuck Project 2016 - 2018.
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 
10 #ifndef _MARIADB_LAST_ERROR_HPP_
11 #define _MARIADB_LAST_ERROR_HPP_
12 
13 #include <string>
14 #include "types.hpp"
15 
16 namespace mariadb {
17 class last_error {
18  public:
19  //
20  // Constructor
21  //
22  last_error();
23 
24  //
25  // Get last error
26  //
27  u32 error_no() const;
28  const std::string& error() const;
29 
30  protected:
33 };
34 }
35 
36 #endif
std::string m_last_error
Definition: last_error.hpp:32
const std::string & error() const
Definition: last_error.cpp:24
u32 error_no() const
Definition: last_error.cpp:22
unsigned int u32
Definition: types.hpp:22