| 442 | } |
| 443 | |
| 444 | double TJsonValue::GetDoubleSafe() const { |
| 445 | if (!IsDouble()) { |
| 446 | ythrow TJsonException() << "Not a double"; |
| 447 | } |
| 448 | return GetDouble(); |
| 449 | } |
| 450 | |
| 451 | const TString& TJsonValue::GetStringSafe() const { |
| 452 | if (Type != JSON_STRING) { |
no test coverage detected