| 485 | } |
| 486 | |
| 487 | double TJsonValue::GetDoubleSafe() const { |
| 488 | if (!IsDouble()) { |
| 489 | ythrow TJsonException() << "Not a double"; |
| 490 | } |
| 491 | return GetDouble(); |
| 492 | } |
| 493 | |
| 494 | const TString& TJsonValue::GetStringSafe() const { |
| 495 | if (Type != JSON_STRING) { |
no test coverage detected