Home
last modified time | relevance | path

Searched refs:logic_error (Results 1 – 25 of 130) sorted by relevance

123456

/third_party/boost/boost/poly_collection/
Dexception.hpp23 struct unregistered_type:std::logic_error
26 std::logic_error{"type not registered"}, in unregistered_type()
33 struct not_copy_constructible:std::logic_error
36 std::logic_error{"type is not copy constructible"}, in not_copy_constructible()
43 struct not_equality_comparable:std::logic_error
46 std::logic_error{"type does not support equality comparison"}, in not_equality_comparable()
/third_party/boost/libs/outcome/test/tests/
Dudts.cpp71 udt(const udt & /*unused*/) { throw std::logic_error("copy"); } in udt()
72 udt(udt && /*unused*/) noexcept(false) { throw std::logic_error("move"); } // NOLINT in udt()
73 udt &operator=(const udt & /*unused*/) { throw std::logic_error("copy"); } in operator =()
74 … udt &operator=(udt && /*unused*/) noexcept(false) { throw std::logic_error("move"); } // NOLINT in operator =()
91 catch(const std::logic_error &e)
105 catch(const std::logic_error &e)
122 catch(const std::logic_error &e)
141 catch(const std::logic_error &e)
/third_party/boost/libs/test/doc/examples/
Druntime-configuration_4.run-fail.cpp40 throw std::logic_error("Incorrect number of arguments"); in file_dataset()
42 throw std::logic_error("First argument != '--test-file'"); in file_dataset()
44 throw std::logic_error("Incorrect line start/end"); in file_dataset()
50 throw std::logic_error("Cannot open the file '" + m_filename + "'"); in file_dataset()
58 throw std::logic_error("Incorrect line start/end"); in file_dataset()
/third_party/boost/libs/log/src/
Dexceptions.cpp461 logic_error::logic_error(std::string const& descr) : in logic_error() function in boost::logic_error
462 std::logic_error(descr) in logic_error()
466 logic_error::~logic_error() throw() in ~logic_error()
470 void logic_error::throw_(const char* file, std::size_t line, const char* descr) in throw_()
472 boost::throw_exception(boost::enable_error_info(logic_error(descr)) in throw_()
478 void logic_error::throw_(const char* file, std::size_t line, std::string const& descr) in throw_()
480 boost::throw_exception(boost::enable_error_info(logic_error(descr)) in throw_()
487 logic_error("ODR violation detected") in odr_violation()
492 logic_error(descr) in odr_violation()
525 logic_error("Invalid call sequence") in unexpected_call()
[all …]
/third_party/boost/libs/thread/example/
Dmake_future.cpp42 if (x < 0) return boost::make_exceptional_future<int>(std::logic_error("Error")); in compute()
44 if (x < 0) return boost::make_exceptional(std::logic_error("Error")); in compute()
57 if (x < 0) return boost::make_exceptional_future<int&>(std::logic_error("Error")); in compute_ref()
59 if (x < 0) return boost::make_exceptional(std::logic_error("Error")); in compute_ref()
69 if (x < 0) return boost::make_exceptional_future<int>(std::logic_error("Error")).share(); in shared_compute()
71 if (x < 0) return boost::make_exceptional(std::logic_error("Error")); in shared_compute()
/third_party/boost/libs/test/test/test-organization-ts/datasets-test/
Dxrange-test.cpp30 BOOST_CHECK_THROW( data::xrange( -5 ), std::logic_error ); in BOOST_AUTO_TEST_CASE()
31 BOOST_CHECK_THROW( data::xrange( 0 ), std::logic_error ); in BOOST_AUTO_TEST_CASE()
36 BOOST_CHECK_THROW( data::xrange( 0, 0 ), std::logic_error ); in BOOST_AUTO_TEST_CASE()
37 BOOST_CHECK_THROW( data::xrange( 3, 1 ), std::logic_error ); in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/log/example/doc/
Dexception_handling.cpp86 void operator() (std::logic_error const& e) const in operator ()()
99 std::logic_error in init_exception_handler()
113 void operator() (std::logic_error const& e) const in operator ()()
131 std::logic_error in init_exception_handler_nothrow()
/third_party/boost/libs/outcome/doc/src/content/reference/types/
Dbad_result_access.md3 description = "Exception type publicly inheriting from `std::logic_error` indicating an incorrect o…
6 Exception type publicly inheriting from {{% api "std::logic_error" %}} indicating an incorrect obse…
8 No member functions are added in addition to `std::logic_error`. Typical `.what()` strings are:
Dbad_outcome_access.md3 description = "Exception type publicly inheriting from `std::logic_error` indicating an incorrect o…
6 Exception type publicly inheriting from {{% api "std::logic_error" %}} indicating an incorrect obse…
8 No member functions are added in addition to `std::logic_error`. Typical `.what()` strings are:
/third_party/boost/boost/log/
Dexceptions.hpp323 class BOOST_LOG_API logic_error : class
324 public std::logic_error
330 explicit logic_error(std::string const& descr);
334 ~logic_error() throw() BOOST_OVERRIDE;
346 public logic_error
373 public logic_error
400 public logic_error
427 public logic_error
/third_party/benchmark/test/
Ddiagnostics_test.cc22 throw std::logic_error(""); in TestHandler()
34 } catch (std::logic_error const&) { in try_invalid_pause_resume()
39 } catch (std::logic_error const&) { in try_invalid_pause_resume()
/third_party/boost/boost/math/interpolators/detail/
Dcardinal_trigonometric_detail.hpp44 throw std::logic_error("At least one sample is required.");
48 throw std::logic_error("The step size must be > 0");
60 throw std::logic_error("A null fftw plan was created.");
211 throw std::logic_error("At least one sample is required.");
215 throw std::logic_error("The step size must be > 0");
223 throw std::logic_error("A null fftw plan was created.");
369 throw std::logic_error("At least one sample is required.");
373 throw std::logic_error("The step size must be > 0");
381 throw std::logic_error("A null fftw plan was created.");
525 throw std::logic_error("At least one sample is required.");
[all …]
Dcubic_b_spline_detail.hpp117 …throw std::logic_error("Interpolation using a cubic b spline with derivatives estimated at the end… in cubic_b_spline_imp()
121 … throw std::logic_error("Interpolation using a cubic b spline requires at least 3 points.\n"); in cubic_b_spline_imp()
127 throw std::logic_error("Left endpoint is NAN; this is disallowed.\n"); in cubic_b_spline_imp()
131 …throw std::logic_error("Right endpoint overflows the maximum representable number of the specified… in cubic_b_spline_imp()
135 throw std::logic_error("The step size must be strictly > 0.\n"); in cubic_b_spline_imp()
183 throw std::logic_error(err); in cubic_b_spline_imp()
Dcardinal_cubic_b_spline_detail.hpp117 …throw std::logic_error("Interpolation using a cubic b spline with derivatives estimated at the end… in cardinal_cubic_b_spline_imp()
121 … throw std::logic_error("Interpolation using a cubic b spline requires at least 3 points.\n"); in cardinal_cubic_b_spline_imp()
127 throw std::logic_error("Left endpoint is NAN; this is disallowed.\n"); in cardinal_cubic_b_spline_imp()
131 …throw std::logic_error("Right endpoint overflows the maximum representable number of the specified… in cardinal_cubic_b_spline_imp()
135 throw std::logic_error("The step size must be strictly > 0.\n"); in cardinal_cubic_b_spline_imp()
183 throw std::logic_error(err); in cardinal_cubic_b_spline_imp()
/third_party/boost/libs/lexical_cast/perf/
Dperformance_test.cpp43 if (ss.fail()) throw std::logic_error("descr"); in test_ss_constr()
45 if (ss.fail()) throw std::logic_error("descr"); in test_ss_constr()
53 if (ss.fail()) throw std::logic_error("descr"); in test_ss_constr()
55 if (ss.fail()) throw std::logic_error("descr"); in test_ss_constr()
62 if (ss.fail()) throw std::logic_error("descr"); in test_ss_noconstr()
64 if (ss.fail()) throw std::logic_error("descr"); in test_ss_noconstr()
74 if (ss.fail()) throw std::logic_error("descr"); in test_ss_noconstr()
76 if (ss.fail()) throw std::logic_error("descr"); in test_ss_noconstr()
/third_party/boost/boost/numeric/ublas/
Dexception.hpp52 : public std::logic_error {
54 std::logic_error (s) {} in internal_logic()
73 : public std::logic_error {
75 std::logic_error (s) {} in external_logic()
/third_party/qrcodegen/cpp/
Dqrcodegen.cpp238 default: throw std::logic_error("Assertion error"); in getFormatBits()
279 throw std::logic_error("Assertion error"); in encodeSegments()
295 throw std::logic_error("Assertion error"); in encodeSegments()
300 throw std::logic_error("Assertion error"); in encodeSegments()
304 throw std::logic_error("Assertion error"); in encodeSegments()
353 throw std::logic_error("Assertion error"); in QrCode()
425 throw std::logic_error("Assertion error"); in drawFormatBits()
455 throw std::logic_error("Assertion error"); in drawVersion()
535 throw std::logic_error("Assertion error"); in addEccAndInterleave()
564 throw std::logic_error("Assertion error"); in drawCodewords()
[all …]
/third_party/boost/libs/uuid/test/
Dmock_random.hpp51 throw std::logic_error("expectations not supported"); in expectations_met()
57 throw std::logic_error("expectations not supported"); in expect_next_call_success()
62 throw std::logic_error("expectations not supported"); in provider_acquires_context()
266 if (siz > 4) { throw std::logic_error("unexpected siz"); } in mockread()
/third_party/boost/boost/optional/
Dbad_optional_access.hpp27 class bad_optional_access : public std::logic_error
31 : std::logic_error("Attempted to access the value of an uninitialized optional object.") in bad_optional_access()
/third_party/boost/boost/test/data/
Dconfig.hpp47 #define BOOST_TEST_DS_ERROR( msg ) BOOST_TEST_I_THROW( std::logic_error( msg ) )
48 #define BOOST_TEST_DS_ASSERT( cond, msg ) BOOST_TEST_I_ASSRT( cond, std::logic_error( msg ) )
/third_party/boost/libs/test/example/
Dunit_test_example_10.cpp38 throw std::logic_error("You don't have that much money!"); in withdraw()
159 throw std::logic_error( "Initial deposit expected" ); in init_unit_test_suite()
164 throw std::logic_error( "Initial deposit value should match format of double" ); in init_unit_test_suite()
/third_party/boost/libs/log/test/run/
Dutil_exception_handler.cpp173 throw std::logic_error("error"); in BOOST_AUTO_TEST_CASE()
236 throw std::logic_error("error"); in BOOST_AUTO_TEST_CASE()
298 throw std::logic_error("error"); in BOOST_AUTO_TEST_CASE()
340 throw std::logic_error("error"); in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/stacktrace/test/
Dtest_impl.hpp53 throw std::logic_error("test"); in function_from_main_translation_unit()
54 } catch (const std::logic_error& /*e*/) { in function_from_main_translation_unit()
/third_party/boost/boost/coroutine/
Dexceptions.hpp72 class coroutine_error : public std::logic_error
79 logic_error( ec.message() ), in coroutine_error()
/third_party/boost/boost/date_time/local_time/
Dlocal_date_time.hpp29 struct BOOST_SYMBOL_VISIBLE ambiguous_result : public std::logic_error
32 std::logic_error(std::string("Daylight Savings Results are ambiguous: " + msg)) {} in ambiguous_result()
35 struct BOOST_SYMBOL_VISIBLE time_label_invalid : public std::logic_error
38 std::logic_error(std::string("Time label given is invalid: " + msg)) {} in time_label_invalid()
40 struct BOOST_SYMBOL_VISIBLE dst_not_valid: public std::logic_error
43 …std::logic_error(std::string("is_dst flag does not match resulting dst for time label given: " + m… in dst_not_valid()

123456