Searched refs:runtime_error (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-12-stable/contrib/libstdc++/src/
H A Dstdexcept.cc60 runtime_error::runtime_error(const string& __arg) function in class:runtime_error
63 runtime_error::~runtime_error() throw() { }
66 runtime_error::what() const throw()
70 : runtime_error(__arg) { }
73 : runtime_error(__arg) { }
76 : runtime_error(__arg) { }
H A Dfunctexcept.cc84 { throw runtime_error(_(__s)); }
/freebsd-12-stable/contrib/libstdc++/include/std/
H A Dstd_stdexcept.h107 class runtime_error : public exception class in inherits:exception
114 runtime_error(const string& __arg);
117 ~runtime_error() throw();
126 class range_error : public runtime_error
133 class overflow_error : public runtime_error
140 class underflow_error : public runtime_error
/freebsd-12-stable/contrib/atf/atf-c++/detail/
H A Dexceptions.hpp38 class system_error : public std::runtime_error {
H A Dtext_test.cpp141 ATF_REQUIRE_THROW(std::runtime_error, match("", "["));
302 ATF_REQUIRE_THROW(std::runtime_error, to_bool(""));
303 ATF_REQUIRE_THROW(std::runtime_error, to_bool("tru"));
304 ATF_REQUIRE_THROW(std::runtime_error, to_bool("true2"));
305 ATF_REQUIRE_THROW(std::runtime_error, to_bool("fals"));
306 ATF_REQUIRE_THROW(std::runtime_error, to_bool("false2"));
325 ATF_REQUIRE_THROW_RE(std::runtime_error, "Empty", to_bytes(""));
326 ATF_REQUIRE_THROW_RE(std::runtime_error, "Unknown size unit 'd'",
328 ATF_REQUIRE_THROW(std::runtime_error, to_bytes(" "));
329 ATF_REQUIRE_THROW(std::runtime_error, to_byte
[all...]
H A Dexceptions.cpp50 std::runtime_error(who + ": " + message),
75 m_message = std::string(std::runtime_error::what()) + ": ";
120 throw std::runtime_error(buf);
H A Dapplication.hpp41 class usage_error : public std::runtime_error {
H A Dtext.cpp65 throw std::runtime_error("Invalid regular expression '" + regex +
71 throw std::runtime_error("Invalid regular expression " + regex);
137 throw std::runtime_error("Empty value");
148 throw std::runtime_error(std::string("Unknown size unit '") + unit
H A Dtext.hpp142 throw std::runtime_error("Cannot convert string to requested type");
H A Dapplication.cpp63 std::runtime_error("usage_error; message unformatted")
237 } catch (const std::runtime_error& e) {
H A Dexceptions_test.cpp127 } catch (const std::runtime_error& e) {
H A Dfs.cpp471 throw std::runtime_error("PATH not defined in the environment");
/freebsd-12-stable/contrib/googletest/googletest/test/
H A Dgoogletest-catch-exceptions-test_.cc109 throw std::runtime_error("Standard C++ exception"));
153 throw std::runtime_error("Standard C++ exception"));
169 throw std::runtime_error("Standard C++ exception");
207 throw std::runtime_error("Standard C++ exception");
228 virtual void SetUp() { throw std::runtime_error("Standard C++ exception"); }
258 throw std::runtime_error("Standard C++ exception");
287 throw std::runtime_error("Standard C++ exception");
H A Dgtest_throw_on_failure_ex_test.cc51 // std::runtime_error.
62 // A failed assertion should throw a subclass of std::runtime_error.
65 } catch(const std::runtime_error& e) {
/freebsd-12-stable/contrib/atf/atf-c++/
H A Dmacros_hpp_test.cpp68 // Check that we can pass std::runtime_error to ATF_REQUIRE_THROW.
72 ATF_REQUIRE_THROW(std::runtime_error, (void)0);
82 ATF_REQUIRE_THROW(std::runtime_error, (void)0);
84 ATF_REQUIRE_THROW(std::runtime_error, (void)1);
H A Dmacros_test.cpp190 ATF_REQUIRE_THROW(std::runtime_error, if (1) throw int(5));
192 ATF_REQUIRE_THROW(std::runtime_error,
193 if (1) throw std::runtime_error("e"));
195 ATF_REQUIRE_THROW(std::runtime_error,
196 if (0) throw std::runtime_error("e"));
211 ATF_REQUIRE_THROW_RE(std::runtime_error, "5", if (1) throw int(5));
213 ATF_REQUIRE_THROW_RE(std::runtime_error, "foo.*baz",
214 if (1) throw std::runtime_error("a foo bar baz"));
216 ATF_REQUIRE_THROW_RE(std::runtime_error, "foo.*baz",
217 if (1) throw std::runtime_error("ba
[all...]
H A Dtests.cpp416 throw std::runtime_error("-v requires a non-empty argument");
423 throw std::runtime_error("-v requires an argument of the form "
/freebsd-12-stable/contrib/llvm-project/libcxx/src/
H A Dsystem_error.cpp244 : runtime_error(__init(ec, what_arg)),
250 : runtime_error(__init(ec, what_arg)),
256 : runtime_error(__init(ec, "")),
262 : runtime_error(__init(error_code(ev, ecat), what_arg)),
268 : runtime_error(__init(error_code(ev, ecat), what_arg)),
274 : runtime_error(__init(error_code(ev, ecat), "")),
H A Dregex.cpp65 : runtime_error(make_error_type_string(ecode)),
/freebsd-12-stable/contrib/libstdc++/include/ext/
H A Ddebug_allocator.h116 throw std::runtime_error("debug_allocator::deallocate"
122 throw std::runtime_error("debug_allocator::deallocate null pointer");
/freebsd-12-stable/contrib/atf/atf-sh/
H A Datf-check.cpp171 throw std::runtime_error("Unused reason");
173 } catch (const std::runtime_error&) {
219 } catch (std::runtime_error) {
365 throw std::runtime_error("Failed to open " + path.str());
381 throw std::runtime_error("Failed to open " + path.str());
412 throw std::runtime_error("Failed to open " + p1.str());
416 throw std::runtime_error("Failed to open " + p1.str());
423 throw std::runtime_error("Failed to read from " + p1.str());
427 throw std::runtime_error("Failed to read from " + p1.str());
H A Datf-sh.cpp167 throw std::runtime_error("The test program '" + script.str() + "' "
/freebsd-12-stable/contrib/atf/test-programs/
H A Dcpp_helpers.cpp307 throw std::runtime_error("This is unhandled");
/freebsd-12-stable/contrib/googletest/googlemock/test/
H A Dgmock-nice-strict_test.cc244 } catch (const std::runtime_error& ex) {
/freebsd-12-stable/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-internal.h149 // are enabled). We derive it from std::runtime_error, which is for
151 // std::runtime_error inherits from std::exception, many testing
153 class GTEST_API_ GoogleTestFailureException : public ::std::runtime_error {

Completed in 126 milliseconds

12