| 280 | } |
| 281 | |
| 282 | bool ErrorContainer::hasFatalErrors() const { |
| 283 | const std::map<ErrorDefinition::ErrorType, ErrorDefinition::ErrorInfo>& |
| 284 | infoMap = ErrorDefinition::getErrorInfoMap(); |
| 285 | bool reportFatalError = false; |
| 286 | for (const Error& msg : m_errors) { |
| 287 | ErrorDefinition::ErrorType type = msg.m_errorId; |
| 288 | std::map<ErrorDefinition::ErrorType, |
| 289 | ErrorDefinition::ErrorInfo>::const_iterator itr = |
| 290 | infoMap.find(type); |
| 291 | if (itr != infoMap.end()) { |
| 292 | ErrorDefinition::ErrorInfo info = (*itr).second; |
| 293 | std::string severity; |
| 294 | switch (info.m_severity) { |
| 295 | case ErrorDefinition::FATAL: |
| 296 | reportFatalError = true; |
| 297 | break; |
| 298 | default: |
| 299 | break; |
| 300 | } |
| 301 | } |
| 302 | } |
| 303 | return reportFatalError; |
| 304 | } |
| 305 | |
| 306 | std::pair<std::string, bool> ErrorContainer::createReport_() const { |
| 307 | std::string report; |
no outgoing calls
no test coverage detected