| 1420 | } |
| 1421 | |
| 1422 | bool mitk::nnInteractiveTool::IsRemoteConnectionError(const std::string& message) const |
| 1423 | { |
| 1424 | // ExecuteSession() wraps remote session calls in a Python try/except that |
| 1425 | // catches httpx.HTTPError (the base of every httpx transport/status error) |
| 1426 | // and the typed lease errors, then re-raises our own stable sentinel. So a |
| 1427 | // robust check is just for that sentinel -- no guessing at httpx or OS error |
| 1428 | // wording. |
| 1429 | return m_Impl->Remote && message.find(REMOTE_CONNECTION_LOST_SENTINEL) != std::string::npos; |
| 1430 | } |
| 1431 | |
| 1432 | bool mitk::nnInteractiveTool::HandleSessionError(const std::string& errorMessage) |
| 1433 | { |
no test coverage detected