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

Method GetIntegerSafe

library/cpp/json/writer/json_value.cpp:430–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428 }
429
430 long long TJsonValue::GetIntegerSafe() const {
431 if (!IsInteger()) {
432 ythrow TJsonException() << "Not an integer";
433 }
434 return GetInteger();
435 }
436
437 unsigned long long TJsonValue::GetUIntegerSafe() const {
438 if (!IsUInteger()) {

Callers 4

DecodeMethod · 0.45
AreJsonValuesDifferentFunction · 0.45
InitMetadataMethod · 0.45

Calls 2

GetIntegerFunction · 0.70
IsIntegerFunction · 0.50

Tested by

no test coverage detected