Home
last modified time | relevance | path

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

12

/freebsd/contrib/kyua/utils/text/
H A Dexceptions.cpp82 text::value_error::value_error(const std::string& message) : in value_error() function in text::value_error
89 text::value_error::~value_error(void) throw() in ~value_error()
H A Dexceptions_test.cpp62 ATF_TEST_CASE_WITHOUT_HEAD(value_error);
63 ATF_TEST_CASE_BODY(value_error) in ATF_TEST_CASE_BODY() argument
65 const text::value_error e("Some text"); in ATF_TEST_CASE_BODY()
75 ATF_ADD_TEST_CASE(tcs, value_error); in ATF_INIT_TEST_CASES()
H A Dexceptions.hpp66 class value_error : public error { class
68 explicit value_error(const std::string&);
69 ~value_error(void) throw();
H A Doperations_test.cpp373 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("")); in ATF_TEST_CASE_BODY()
380 ATF_REQUIRE_THROW(text::value_error, text::to_type< bool >("")); in ATF_TEST_CASE_BODY()
381 ATF_REQUIRE_THROW(text::value_error, text::to_type< bool >("true ")); in ATF_TEST_CASE_BODY()
382 ATF_REQUIRE_THROW(text::value_error, text::to_type< bool >("foo")); in ATF_TEST_CASE_BODY()
389 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >(" 3")); in ATF_TEST_CASE_BODY()
390 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("3 ")); in ATF_TEST_CASE_BODY()
391 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("3a")); in ATF_TEST_CASE_BODY()
392 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("a3")); in ATF_TEST_CASE_BODY()
H A Doperations.ipp71 /// \throw std::value_error If the input string does not represent a valid
79 throw text::value_error("Empty string");
81 throw text::value_error("Invalid value");
87 throw text::value_error("Invalid value");
H A Doperations.cpp247 throw value_error(F("Invalid boolean value '%s'") % str); in to_type()
/freebsd/contrib/kyua/utils/config/
H A Dnodes_test.cpp51 /// \throw value_error If the value is not valid.
56 throw config::value_error("Custom validate method"); in validate()
67 /// \throw value_error If the value is not valid.
74 throw config::value_error("Custom validate method"); in validate()
153 ATF_REQUIRE_THROW(config::value_error, node.set_lua(state, -1)); in ATF_TEST_CASE_BODY()
174 ATF_REQUIRE_THROW(config::value_error, node.set_string("12345")); in ATF_TEST_CASE_BODY()
264 ATF_REQUIRE_THROW(config::value_error, node.set_lua(state, -1)); in ATF_TEST_CASE_BODY()
285 ATF_REQUIRE_THROW(config::value_error, node.set_string(" 23")); in ATF_TEST_CASE_BODY()
376 ATF_REQUIRE_THROW(config::value_error, node.set_lua(state, -1)); in ATF_TEST_CASE_BODY()
380 ATF_REQUIRE_THROW(config::value_error, nod in ATF_TEST_CASE_BODY()
[all...]
H A Dexceptions.cpp140 config::value_error::value_error(const std::string& message) : in value_error() function in config::value_error
147 config::value_error::~value_error(void) throw() in ~value_error()
H A Dparser.cpp110 throw config::value_error("Last argument to syntax must be a number"); in lua_syntax()
115 throw config::value_error("Version 1 files need two arguments to " in lua_syntax()
118 throw config::value_error("First argument to syntax must be " in lua_syntax()
122 throw config::value_error("syntax() only takes one argument"); in lua_syntax()
H A Dexceptions_test.cpp115 ATF_TEST_CASE_WITHOUT_HEAD(value_error);
116 ATF_TEST_CASE_BODY(value_error) in ATF_TEST_CASE_BODY() argument
118 const config::value_error e("Some text"); in ATF_TEST_CASE_BODY()
132 ATF_ADD_TEST_CASE(tcs, value_error); in ATF_INIT_TEST_CASES()
H A Dexceptions.hpp95 class value_error : public error { class
97 explicit value_error(const std::string&);
98 ~value_error(void) throw();
H A Dlua_module.cpp156 throw config::value_error("Indexed object is not a table"); in redirect_newindex()
158 throw config::value_error("Invalid field in configuration object " in redirect_newindex()
165 } catch (const config::value_error& e) { in redirect_newindex()
197 throw config::value_error("Indexed object is not a table"); in redirect_index()
199 throw config::value_error("Invalid field in configuration object " in redirect_index()
H A Dnodes.ipp207 /// \throw value_error If the value is invalid, according to validate().
222 /// \throw value_error If the value is not valid.
235 /// \throw value_error If the value is invalid.
243 } catch (const text::value_error& e) {
244 throw config::value_error(F("Failed to convert string value '%s' to "
323 /// \throw value_error If the value is invalid, according to validate().
337 /// \throw value_error If the value is invalid.
380 /// \throw value_error If the value in state(value_index) cannot be
402 /// \throw value_error If the value is not valid.
H A Dtree.cpp201 } catch (const value_error& e) { in set_lua()
256 } catch (const value_error& e) { in set_string()
297 throw value_error(F("Cannot export properties from a leaf node; " in all_properties()
H A Dnodes.cpp467 /// \throw value_error If the value in state(value_index) cannot be
475 throw value_error("Not a boolean");
506 /// \throw value_error If the value in state(value_index) cannot be
514 throw value_error("Not an integer");
522 /// \throw value_error If the value is not valid. in validate()
527 throw value_error("Must be a positive integer");
570 /// \throw value_error If the value in state(value_index) cannot be
578 throw value_error("Not a string");
H A Dlua_module_test.cpp434 ATF_TEST_CASE_WITHOUT_HEAD(value_error);
435 ATF_TEST_CASE_BODY(value_error) in ATF_TEST_CASE_BODY() argument
473 ATF_ADD_TEST_CASE(tcs, value_error); in ATF_INIT_TEST_CASES()
H A Dtree.ipp146 } catch (const value_error& e) {
H A Dtree_test.cpp892 ATF_REQUIRE_THROW_RE(config::value_error, "Cannot export.*leaf", in ATF_TEST_CASE_BODY()
938 ATF_REQUIRE_THROW_RE(config::value_error, "Cannot export.*leaf", in ATF_TEST_CASE_BODY()
/freebsd/contrib/kyua/model/
H A Dmetadata.cpp118 /// \throw value_error If the value is invalid.
126 throw config::value_error(F("Invalid time delta %s") % raw_value); in set_string()
178 /// \throw config::value_error If the value is not valid.
183 throw config::value_error("Invalid required user value"); in validate()
211 /// \throw config::value_error If the value is invalid.
218 throw config::value_error(e.what()); in parse_one()
226 /// \throw config::value_error If the value is not valid.
234 throw config::value_error(F("Relative path '%s' not allowed") % in validate()
329 } catch (const config::value_error& e) { in lookup_rw()
353 } catch (const config::value_error in set()
[all...]
/freebsd/contrib/kyua/engine/
H A Dconfig.cpp165 /// \throw value_error If the value in state(value_index) cannot be
177 throw config::value_error("Invalid user identifier"); in set_lua()
185 /// \throw value_error If the value is invalid.
196 } catch (const text::value_error& e2) { in set_string()
H A Datf_result.cpp166 } catch (const text::value_error& e) { in parse_int()
/freebsd/contrib/kyua/utils/
H A Dunits.cpp101 } catch (const text::value_error& e) { in parse()
/freebsd/contrib/kyua/utils/cmdline/
H A Dui.cpp142 } catch (const utils::text::value_error& e) { in screen_width()
/freebsd/contrib/kyua/utils/format/
H A Dformatter.cpp102 } catch (const text::value_error& e) { in to_int()
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DFunctionCaller.cpp187 Status value_error; in WriteFunctionArguments() local

12