Home
last modified time | relevance | path

Searched refs:range_error (Results 1 – 25 of 71) sorted by relevance

123

/third_party/boost/libs/multiprecision/test/
Dtest_checked_cpp_int.cpp100 BOOST_CHECK_THROW(--val, std::range_error); in test()
102 BOOST_CHECK_THROW(test_type(val - 1), std::range_error); in test()
142 BOOST_CHECK_THROW(test_type(a | b), std::range_error); in test()
143 BOOST_CHECK_THROW(test_type(a & b), std::range_error); in test()
144 BOOST_CHECK_THROW(test_type(a ^ b), std::range_error); in test()
149 BOOST_CHECK_THROW(test_type(-2), std::range_error); in test()
150 BOOST_CHECK_THROW(test_type("-2"), std::range_error); in test()
156 BOOST_CHECK_THROW(t = llm, std::range_error); in test()
157 BOOST_CHECK_THROW(t = static_cast<test_type>(llm), std::range_error); in test()
159 BOOST_CHECK_THROW(t = ullm, std::range_error); in test()
[all …]
Dtest_native_integer.cpp29 BOOST_CHECK_THROW(lsb(i), std::range_error); in test()
52 BOOST_CHECK_THROW(lsb(i), std::range_error); in test()
/third_party/boost/libs/date_time/test/
Dtestconstrained_value.cpp28 struct range_error {}; //exception type struct
29 typedef boost::CV::simple_exception_policy<int,1,10,range_error> one_to_ten_range_policy;
58 catch(range_error&) { in main()
67 catch(range_error&) { in main()
76 catch(range_error&) { in main()
/third_party/boost/boost/safe_numerics/
Dchecked_result_operations.hpp47 …case safe_numerics_error::range_error: // result cannot be produced for this operat… in display()
124 safe_numerics_error::range_error, // indeterminate, in operator +()
131 safe_numerics_error::range_error, // greater_than_max, in operator +()
132 safe_numerics_error::range_error, // indeterminate, in operator +()
138 safe_numerics_error::range_error, // less_than_min, in operator +()
140 safe_numerics_error::range_error, // indeterminate, in operator +()
145 safe_numerics_error::range_error, // known_value, in operator +()
146 safe_numerics_error::range_error, // less_than_min, in operator +()
147 safe_numerics_error::range_error, // greater_than_max, in operator +()
148 safe_numerics_error::range_error, // indeterminate, in operator +()
[all …]
Dexception.hpp39 range_error, // result cannot be produced for this operation enumerator
81 case safe_numerics_error::range_error: in message()
156 || code == safe_numerics_error::range_error in equivalent()
/third_party/boost/libs/random/test/
Dtest_qrng_functions.hpp153 BOOST_REQUIRE_EXCEPTION( eng.seed(maxseed), std::range_error, accept_all_exceptions ); in test_max_seed()
177 BOOST_REQUIRE_EXCEPTION( eng(), std::range_error, accept_all_exceptions ); in test_max_discard()
188 BOOST_REQUIRE_EXCEPTION( other(), std::range_error, accept_all_exceptions ); in test_max_discard()
198 BOOST_REQUIRE_EXCEPTION( eng(), std::range_error, accept_all_exceptions ); in test_max_discard()
202 BOOST_REQUIRE_EXCEPTION( other.discard(maxdiscard+1), std::range_error, accept_all_exceptions ); in test_max_discard()
211 BOOST_REQUIRE_EXCEPTION( eng.discard(maxdiscard*2), std::range_error, accept_all_exceptions ); in test_max_discard()
/third_party/boost/libs/safe_numerics/test/
Dtest_checked_values.hpp21 boost::safe_numerics::safe_numerics_error::range_error,
41 boost::safe_numerics::safe_numerics_error::range_error,
Dtest_interval.cpp52 if(l2 == safe_numerics_error::range_error in test_type_operator()
54 || u2 == safe_numerics_error::range_error in test_type_operator()
75 if(result != safe_numerics_error::range_error in test_type_operator()
Dtest_checked_subtract_constexpr.cpp33 if(safe_numerics_error::range_error == result.m_e) in test_checked_subtract()
Dtest_checked_xor_constexpr.cpp36 if(safe_numerics_error::range_error == result.m_e) in test_checked_xor()
Dtest_checked_divide_constexpr.cpp31 return safe_numerics_error::range_error == result.m_e; in test_checked_divide()
Dtest_checked_modulus_constexpr.cpp28 return safe_numerics_error::range_error == result.m_e; in test_checked_modulus()
Dtest_checked_add_constexpr.cpp28 return safe_numerics_error::range_error == result.m_e; in test_checked_add()
Dtest_checked_or_constexpr.cpp33 if(safe_numerics_error::range_error == result.m_e) in test_checked_or()
Dtest_checked_and_constexpr.cpp28 return safe_numerics_error::range_error == result.m_e; in test_checked_and()
/third_party/boost/boost/multiprecision/
Dinteger.hpp118 BOOST_THROW_EXCEPTION(std::range_error("No bits were set in the operand.")); in lsb()
122 …BOOST_THROW_EXCEPTION(std::range_error("Testing individual bits in negative values is not supporte… in lsb()
135 BOOST_THROW_EXCEPTION(std::range_error("No bits were set in the operand.")); in msb()
139 …BOOST_THROW_EXCEPTION(std::range_error("Testing individual bits in negative values is not supporte… in msb()
/third_party/boost/boost/random/detail/
Dqrng_base.hpp44 boost::throw_exception( std::range_error("seed must be a positive integer") ); in check_seed_sign()
232 boost::throw_exception( std::range_error("qrng_base: next_state") ); in next_state()
243 boost::throw_exception( std::range_error("qrng_base: discard_vector") ); in discard_vector()
Dgray_coded_qrng.hpp57 boost::throw_exception( std::range_error("gray_coded_qrng: bit_count") ); in raise_bit_count()
116 boost::throw_exception( std::range_error("gray_coded_qrng: seed") ); in seed()
/third_party/abseil-cpp/absl/base/internal/
Dthrow_delegate.cc82 Throw(std::range_error(what_arg)); in ThrowStdRangeError()
85 Throw(std::range_error(what_arg)); in ThrowStdRangeError()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
Dthrow_delegate_test.cc89 ExpectThrowChar<std::range_error>(ThrowStdRangeError); in TEST()
99 ExpectThrowString<std::range_error>(ThrowStdRangeError); in TEST()
/third_party/abseil-cpp/absl/base/
Dthrow_delegate_test.cc89 ExpectThrowChar<std::range_error>(ThrowStdRangeError); in TEST()
99 ExpectThrowString<std::range_error>(ThrowStdRangeError); in TEST()
/third_party/boost/boost/multiprecision/cpp_int/
Dmisc.hpp32 …BOOST_THROW_EXCEPTION(std::range_error("Attempt to assign a negative value to an unsigned type.")); in check_in_range()
48 …BOOST_THROW_EXCEPTION(std::range_error("Attempt to assign a negative value to an unsigned type.")); in check_is_negative()
182 BOOST_THROW_EXCEPTION(std::range_error("No bits were set in the operand.")); in eval_lsb()
186 …BOOST_THROW_EXCEPTION(std::range_error("Testing individual bits in negative values is not supporte… in eval_lsb()
223 BOOST_THROW_EXCEPTION(std::range_error("No bits were set in the operand.")); in eval_msb()
227 …BOOST_THROW_EXCEPTION(std::range_error("Testing individual bits in negative values is not supporte… in eval_msb()
642 BOOST_THROW_EXCEPTION(std::range_error("No bits were set in the operand.")); in eval_lsb()
646 …BOOST_THROW_EXCEPTION(std::range_error("Testing individual bits in negative values is not supporte… in eval_lsb()
671 BOOST_THROW_EXCEPTION(std::range_error("No bits were set in the operand.")); in eval_msb()
675 …BOOST_THROW_EXCEPTION(std::range_error("Testing individual bits in negative values is not supporte… in eval_msb()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
Dthrow_delegate.cc145 Throw(std::range_error(what_arg)); in ThrowStdRangeError()
153 Throw(std::range_error(what_arg)); in ThrowStdRangeError()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-rangeerror.c34 #define BUILTIN_UNDERSCORED_ID range_error
/third_party/boost/libs/exception/example/
Denable_error_info.cpp29 throw boost::enable_error_info(std::range_error("Index out of range")) << in operator []()

123