nip.utils.api.ConnectionError

Contents

nip.utils.api.ConnectionError#

exception nip.utils.api.ConnectionError(message: str, metadata: Any | None = None, num_retries: int | None = None)[source]#

Base class for exceptions regarding connection errors.

Parameters:
  • message (str) – The error message.

  • metadata (Any, optional) – Any additional metadata provided by the API.

  • num_retries (int, optional) – The number of retries that have been attempted, or None if this data is not recorded.