| 125 | } |
| 126 | |
| 127 | size_t ErrorCount(const ErrorLogMap& errors) { |
| 128 | ErrorLogMap::const_iterator cit = errors.find(TErrorCode::GENERAL); |
| 129 | if (cit == errors.end()) return errors.size(); |
| 130 | return errors.size() + cit->second.messages_size() - 1; |
| 131 | } |
| 132 | |
| 133 | TErrorCode::type HS2TStatusCodeToTErrorCode(const TStatusCode::type& hs2Code) { |
| 134 | // There is no one-one mapping between HS2 error codes and TStatusCode types. |