| 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()) { |
no test coverage detected