Searched refs:api_error (Results 1 - 13 of 13) sorted by relevance

/freebsd-13-stable/contrib/lutok/
H A Dexceptions.hpp53 class api_error : public error { class in namespace:lutok
58 explicit api_error(const std::string&, const std::string&);
59 virtual ~api_error(void) throw();
61 static api_error from_stack(state&, const std::string&);
H A Dexceptions.cpp57 lutok::api_error::api_error(const std::string& api_function_, function in class:lutok::api_error
66 lutok::api_error::~api_error(void) throw()
71 /// Constructs a new api_error with the message on the top of the Lua stack.
79 /// \return A new api_error with the popped message.
80 lutok::api_error
81 lutok::api_error::from_stack(state& state_, const std::string& api_function_)
88 return lutok::api_error(api_function_, message);
96 lutok::api_error
[all...]
H A Dtest_utils.hpp52 /// Checks that a given expression raises a particular lutok::api_error.
65 ATF_FAIL("api_error not raised by " #statement); \
66 } catch (const lutok::api_error& api_error) { \
67 ATF_REQUIRE_EQ(exp_api_function, api_error.api_function()); \
H A Dexceptions_test.cpp49 const lutok::api_error e("some_function", "Some text");
61 const lutok::api_error e = lutok::api_error::from_stack(state,
H A Dstate.cpp297 /// \throw api_error If lua_getglobal fails.
307 throw lutok::api_error::from_stack(*this, "lua_getglobal");
363 /// \throw api_error If lua_gettable fails.
375 throw lutok::api_error::from_stack(*this, "lua_gettable");
488 /// \throw api_error If luaL_loadfile returns an error.
498 throw lutok::api_error::from_stack(*this, "luaL_loadfile");
506 /// \throw api_error If luaL_loadstring returns an error.
513 throw lutok::api_error::from_stack(*this, "luaL_loadstring");
560 throw lutok::api_error::from_stack(*this, "lua_next");
573 /// \throw api_error I
[all...]
H A Doperations.cpp88 } catch (const lutok::api_error& e) {
128 } catch (const lutok::api_error& e) {
147 /// \throw api_error If there is a problem evaluating the expression.
H A Ddebug.cpp72 throw lutok::api_error::from_stack(s, "lua_getinfo");
/freebsd-13-stable/contrib/kyua/utils/sqlite/
H A Dexceptions.cpp106 sqlite::api_error::api_error(const optional< fs::path >& db_filename_, function in class:sqlite::api_error
116 sqlite::api_error::~api_error(void) throw()
121 /// Constructs a new api_error with the message in the SQLite database.
127 /// \return A new api_error with the retrieved message.
128 sqlite::api_error
129 sqlite::api_error::from_database(database& database_,
133 return api_error(database_.db_filename(), api_function_,
142 sqlite::api_error
[all...]
H A Dexceptions.hpp61 class api_error : public error { class in namespace:utils::sqlite
66 explicit api_error(const utils::optional< utils::fs::path >&,
68 virtual ~api_error(void) throw();
70 static api_error from_database(database&, const std::string&);
H A Dtest_utils.hpp54 /// Checks that a given expression raises a particular sqlite::api_error.
67 ATF_FAIL("api_error not raised by " #statement); \
68 } catch (const utils::sqlite::api_error& api_error) { \
69 ATF_REQUIRE_EQ(exp_api_function, api_error.api_function()); \
H A Dexceptions_test.cpp76 const sqlite::api_error e(none, "some_function", "Some text");
100 const sqlite::api_error e = sqlite::api_error::from_database(
H A Ddatabase.cpp104 /// \throw api_error If there is any problem opening the database.
116 throw sqlite::api_error::from_database(error_db,
172 /// \throw api_error If there is any problem opening the database.
191 /// \throw api_error If there is any problem opening the database.
223 /// \throw api_error If there is any problem opening the database.
280 /// \throw api_error If there is any problem while processing the SQL.
286 throw api_error::from_database(*this, "sqlite3_exec");
294 /// \throw api_error If there is any problem while opening the transaction.
316 throw api_error::from_database(*this, "sqlite3_prepare_v2");
H A Dstatement.cpp82 /// \throw api_error If the binding fails for any other reason.
95 throw sqlite::api_error::from_database(db, api_function);
187 /// \throw api_error If the processing of the step raises an error.
200 throw api_error::from_database(_pimpl->db, "sqlite3_step");
226 throw api_error::from_database(_pimpl->db, "sqlite3_column_name");
491 /// \throw api_error If the binding fails.
506 /// \throw api_error If the binding fails.
520 /// \throw api_error If the binding fails.
534 /// \throw api_error If the binding fails.
547 /// \throw api_error I
[all...]

Completed in 208 milliseconds