Home
last modified time | relevance | path

Searched refs:api_error (Results 1 – 14 of 14) sorted by relevance

/netbsd-src/external/bsd/kyua-cli/dist/utils/sqlite/
H A Dexceptions.cpp60 sqlite::api_error::api_error(const std::string& api_function_, in api_error() function in sqlite::api_error
69 sqlite::api_error::~api_error(void) throw() in ~api_error()
81 sqlite::api_error
82 sqlite::api_error::from_database(database& database_, in from_database()
86 return api_error(api_function_, ::sqlite3_errmsg(c_db)); in from_database()
94 sqlite::api_error::api_function(void) const in api_function()
H A Dexceptions.hpp54 class api_error : public error { class
59 explicit api_error(const std::string&, const std::string&);
60 virtual ~api_error(void) throw();
62 static api_error from_database(database&, const std::string&);
H A Dexceptions_test.cpp52 const sqlite::api_error e("some_function", "Some text"); in ATF_TEST_CASE_BODY()
66 const sqlite::api_error e = sqlite::api_error::from_database( in ATF_TEST_CASE_BODY()
H A Dtest_utils.hpp68 } catch (const utils::sqlite::api_error& api_error) { \
69 ATF_REQUIRE_EQ(exp_api_function, api_error.api_function()); \
H A Ddatabase.cpp100 throw sqlite::api_error::from_database(error_db, in safe_open()
250 throw api_error::from_database(*this, "sqlite3_exec"); in exec()
280 throw api_error::from_database(*this, "sqlite3_prepare_v2"); in create_statement()
H A Dstatement.cpp93 throw sqlite::api_error::from_database(db, api_function); in handle_bind_error()
198 throw api_error::from_database(_pimpl->db, "sqlite3_step"); in step()
224 throw api_error::from_database(_pimpl->db, "sqlite3_column_name"); in column_name()
H A Dstatement.ipp43 /// \throw api_error If the binding fails.
/netbsd-src/external/bsd/lutok/dist/
H A Dexceptions.cpp57 lutok::api_error::api_error(const std::string& api_function_, in api_error() function in lutok::api_error
66 lutok::api_error::~api_error(void) throw() in ~api_error()
80 lutok::api_error
81 lutok::api_error::from_stack(state& state_, const std::string& api_function_) in from_stack()
88 return lutok::api_error(api_function_, message); in from_stack()
96 lutok::api_error::api_function(void) const in api_function()
H A Dexceptions.hpp53 class api_error : public error { class
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 Dstate.cpp307 throw lutok::api_error::from_stack(*this, "lua_getglobal"); in get_global()
375 throw lutok::api_error::from_stack(*this, "lua_gettable"); in get_table()
498 throw lutok::api_error::from_stack(*this, "luaL_loadfile"); in load_file()
513 throw lutok::api_error::from_stack(*this, "luaL_loadstring"); in load_string()
560 throw lutok::api_error::from_stack(*this, "lua_next"); in next()
581 throw lutok::api_error::from_stack(*this, "luaopen_base"); in open_base()
599 throw lutok::api_error::from_stack(*this, "luaopen_string"); in open_string()
618 throw lutok::api_error::from_stack(*this, "luaopen_table"); in open_table()
634 throw lutok::api_error::from_stack(*this, "lua_pcall"); in pcall()
771 throw lutok::api_error::from_stack(*this, "lua_setglobal"); in set_global()
[all …]
H A Dtest_utils.hpp66 } 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"); in ATF_TEST_CASE_BODY()
61 const lutok::api_error e = lutok::api_error::from_stack(state, in ATF_TEST_CASE_BODY()
H A Doperations.cpp82 } catch (const lutok::api_error& e) { in do_file()
117 } catch (const lutok::api_error& e) { in do_string()
H A Ddebug.cpp72 throw lutok::api_error::from_stack(s, "lua_getinfo"); in get_info()