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

Method GetIntegerSafe

library/cpp/json/ordered_maps/json_value_ordered.cpp:473–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471 }
472
473 long long TJsonValue::GetIntegerSafe() const {
474 if (!IsInteger()) {
475 ythrow TJsonException() << "Not an integer";
476 }
477 return GetInteger();
478 }
479
480 unsigned long long TJsonValue::GetUIntegerSafe() const {
481 if (!IsUInteger()) {

Callers

nothing calls this directly

Calls 2

GetIntegerFunction · 0.70
IsIntegerFunction · 0.50

Tested by

no test coverage detected