MCPcopy Create free account
hub / github.com/MITK/MITK / IsRemoteConnectionError

Method IsRemoteConnectionError

Modules/PythonSegmentation/src/mitknnInteractiveTool.cpp:1422–1430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1420}
1421
1422bool 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
1432bool mitk::nnInteractiveTool::HandleSessionError(const std::string& errorMessage)
1433{

Callers 4

ResetInteractionsMethod · 0.95
SetAutoZoomMethod · 0.95
HandleSessionErrorMethod · 0.95

Calls 1

findMethod · 0.45

Tested by

no test coverage detected