pyniryo_nate.exceptions.TransportError

exception pyniryo_nate.exceptions.TransportError(method: str, path: str, reason: str | Exception)[source]

Exception raised when an HTTP request could not complete: no connection, or no response in time.

A request that timed out may still have been applied by the robot, a move for instance is accepted before its response is written.

Parameters:
  • method (str) – The HTTP method of the request.

  • path (str) – The path of the request.

  • reason (str | Exception) – What went wrong, as the transport reported it.

Return type:

None