MCPcopy Create free account
hub / github.com/catboost/catboost / GetUIntegerSafe

Method GetUIntegerSafe

library/cpp/json/writer/json_value.cpp:437–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435 }
436
437 unsigned long long TJsonValue::GetUIntegerSafe() const {
438 if (!IsUInteger()) {
439 ythrow TJsonException() << "Not an unsigned integer";
440 }
441 return GetUInteger();
442 }
443
444 double TJsonValue::GetDoubleSafe() const {
445 if (!IsDouble()) {

Callers 6

FromJsonStringMethod · 0.45
FromJsonStringMethod · 0.45
Y_UNIT_TESTFunction · 0.45
DecodeMethod · 0.45
AreJsonValuesDifferentFunction · 0.45
LoadMetricsMethod · 0.45

Calls 1

GetUIntegerFunction · 0.70

Tested by

no test coverage detected