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

Method GetUIntegerSafe

library/cpp/json/ordered_maps/json_value_ordered.cpp:480–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478 }
479
480 unsigned long long TJsonValue::GetUIntegerSafe() const {
481 if (!IsUInteger()) {
482 ythrow TJsonException() << "Not an unsigned integer";
483 }
484 return GetUInteger();
485 }
486
487 double TJsonValue::GetDoubleSafe() const {
488 if (!IsDouble()) {

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 1

GetUIntegerFunction · 0.70

Tested by

no test coverage detected