Home
last modified time | relevance | path

Searched refs:value_error (Results 1 – 23 of 23) sorted by relevance

/netbsd-src/external/bsd/kyua-cli/dist/utils/text/
H A Dexceptions.cpp67 text::value_error::value_error(const std::string& message) : in value_error() function in text::value_error
74 text::value_error::~value_error(void) throw() in ~value_error()
H A Dexceptions_test.cpp54 ATF_TEST_CASE_WITHOUT_HEAD(value_error);
55 ATF_TEST_CASE_BODY(value_error) in ATF_TEST_CASE_BODY() argument
57 const text::value_error e("Some text"); in ATF_TEST_CASE_BODY()
66 ATF_ADD_TEST_CASE(tcs, value_error); in ATF_INIT_TEST_CASES()
H A Doperations_test.cpp308 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("")); in ATF_TEST_CASE_BODY()
315 ATF_REQUIRE_THROW(text::value_error, text::to_type< bool >("")); in ATF_TEST_CASE_BODY()
316 ATF_REQUIRE_THROW(text::value_error, text::to_type< bool >("true ")); in ATF_TEST_CASE_BODY()
317 ATF_REQUIRE_THROW(text::value_error, text::to_type< bool >("foo")); in ATF_TEST_CASE_BODY()
324 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >(" 3")); in ATF_TEST_CASE_BODY()
325 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("3 ")); in ATF_TEST_CASE_BODY()
326 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("3a")); in ATF_TEST_CASE_BODY()
327 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("a3")); in ATF_TEST_CASE_BODY()
H A Dexceptions.hpp58 class value_error : public error { class
60 explicit value_error(const std::string&);
61 ~value_error(void) throw();
H A Doperations.ipp70 /// \throw std::value_error If the input string does not represent a valid
78 throw text::value_error("Empty string");
80 throw text::value_error("Invalid value");
86 throw text::value_error("Invalid value");
H A Doperations.cpp177 throw value_error(F("Invalid boolean value '%s'") % str); in to_type()
/netbsd-src/external/bsd/kyua-cli/dist/utils/config/
H A Dexceptions.cpp104 config::value_error::value_error(const std::string& message) : in value_error() function in config::value_error
111 config::value_error::~value_error(void) throw() in ~value_error()
H A Dlua_module.cpp154 throw config::value_error("Indexed object is not a table"); in redirect_newindex()
156 throw config::value_error("Invalid field in configuration object " in redirect_newindex()
163 } catch (const config::value_error& e) { in redirect_newindex()
164 throw config::value_error(F("Invalid value for key '%s' (%s)") % in redirect_newindex()
195 throw config::value_error("Indexed object is not a table"); in redirect_index()
197 throw config::value_error("Invalid field in configuration object " in redirect_index()
H A Dnodes_test.cpp56 throw config::value_error("Custom validate method"); in validate()
74 throw config::value_error("Custom validate method"); in validate()
152 ATF_REQUIRE_THROW(config::value_error, node.set_lua(state, -1)); in ATF_TEST_CASE_BODY()
173 ATF_REQUIRE_THROW(config::value_error, node.set_string("12345")); in ATF_TEST_CASE_BODY()
262 ATF_REQUIRE_THROW(config::value_error, node.set_lua(state, -1)); in ATF_TEST_CASE_BODY()
283 ATF_REQUIRE_THROW(config::value_error, node.set_string(" 23")); in ATF_TEST_CASE_BODY()
372 ATF_REQUIRE_THROW(config::value_error, node.set_lua(state, -1)); in ATF_TEST_CASE_BODY()
487 ATF_REQUIRE_THROW_RE(config::value_error, "Custom validate method", in ATF_TEST_CASE_BODY()
497 ATF_REQUIRE_THROW_RE(config::value_error, "Custom validate method", in ATF_TEST_CASE_BODY()
512 ATF_REQUIRE_THROW_RE(config::value_error, "Custom validate method", in ATF_TEST_CASE_BODY()
[all …]
H A Dexceptions_test.cpp90 ATF_TEST_CASE_WITHOUT_HEAD(value_error);
91 ATF_TEST_CASE_BODY(value_error) in ATF_TEST_CASE_BODY() argument
93 const config::value_error e("Some text"); in ATF_TEST_CASE_BODY()
105 ATF_ADD_TEST_CASE(tcs, value_error); in ATF_INIT_TEST_CASES()
H A Dparser.cpp122 throw config::value_error("Last argument to syntax must be a number"); in lua_syntax()
127 throw config::value_error("Version 1 files need two arguments to " in lua_syntax()
130 throw config::value_error("First argument to syntax must be " in lua_syntax()
134 throw config::value_error("syntax() only takes one argument"); in lua_syntax()
H A Dexceptions.hpp77 class value_error : public error { class
79 explicit value_error(const std::string&);
80 ~value_error(void) throw();
H A Dnodes.ipp197 /// \throw value_error If the value is invalid, according to validate().
214 /// \throw value_error If the value is not valid.
227 /// \throw value_error If the value is invalid.
235 } catch (const text::value_error& e) {
236 throw config::value_error(F("Failed to convert string value '%s' to "
315 /// \throw value_error If the value is invalid, according to validate().
329 /// \throw value_error If the value is invalid.
378 /// \throw value_error If the value in state(value_index) cannot be
397 /// \throw value_error If the value is not valid.
H A Dnodes.cpp171 throw value_error(F("Invalid value for key '%s'") % in lookup_rw()
336 throw value_error("Not a boolean"); in set_lua()
375 throw value_error("Not an integer"); in set_lua()
414 throw value_error("Not a string"); in set_lua()
H A Dtree.cpp166 throw value_error(F("Invalid value for key '%s'") % in set_lua()
217 throw value_error(F("Invalid value for key '%s'") % in set_string()
256 throw value_error(F("Cannot export properties from a leaf node; " in all_properties()
H A Dtree_test.cpp369 ATF_REQUIRE_THROW(config::value_error, in ATF_TEST_CASE_BODY()
371 ATF_REQUIRE_THROW(config::value_error, in ATF_TEST_CASE_BODY()
552 ATF_REQUIRE_THROW(config::value_error, in ATF_TEST_CASE_BODY()
554 ATF_REQUIRE_THROW(config::value_error, in ATF_TEST_CASE_BODY()
556 ATF_REQUIRE_THROW(config::value_error, in ATF_TEST_CASE_BODY()
662 ATF_REQUIRE_THROW_RE(config::value_error, "Cannot export.*leaf", in ATF_TEST_CASE_BODY()
708 ATF_REQUIRE_THROW_RE(config::value_error, "Cannot export.*leaf", in ATF_TEST_CASE_BODY()
H A Dlua_module_test.cpp402 ATF_TEST_CASE_WITHOUT_HEAD(value_error);
403 ATF_TEST_CASE_BODY(value_error) in ATF_TEST_CASE_BODY() argument
440 ATF_ADD_TEST_CASE(tcs, value_error); in ATF_INIT_TEST_CASES()
H A Dtree.ipp130 /// \throw value_error If the value mismatches the node type.
143 throw value_error(F("Invalid value for key '%s'") %
/netbsd-src/external/bsd/kyua-cli/dist/engine/
H A Dmetadata.cpp128 throw config::value_error(F("Invalid time delta %s") % raw_value); in set_string()
191 throw config::value_error("Invalid required user value"); in validate()
226 throw config::value_error(e.what()); in parse_one()
242 throw config::value_error(F("Relative path '%s' not allowed") % in validate()
309 } catch (const config::value_error& e) { in lookup_rw()
333 } catch (const config::value_error& e) { in set()
1029 } catch (const config::value_error& e) { in set_string()
H A Dconfig.cpp161 throw config::value_error("Invalid user identifier"); in set_lua()
175 } catch (const text::value_error& e2) { in set_string()
/netbsd-src/external/bsd/kyua-cli/dist/utils/
H A Dunits.cpp101 } catch (const text::value_error& e) { in parse()
/netbsd-src/external/bsd/kyua-cli/dist/utils/cmdline/
H A Dui.cpp133 } catch (const utils::text::value_error& e) { in screen_width()
/netbsd-src/external/bsd/kyua-cli/dist/utils/format/
H A Dformatter.cpp102 } catch (const text::value_error& e) { in to_int()