NeuroMorphoHTTPError

NeuroMorphoHTTPError#

class braincell.io.NeuroMorphoHTTPError(message, *, status, url)[source]#

Raised when an HTTP request to NeuroMorpho.Org fails permanently.

This exception is also used to signal exhausted retries on transient network failures (in which case status is 0).

Parameters:
  • message (str) – Human-readable error description.

  • status (int) – HTTP status code, or 0 when the failure was a connection / timeout error rather than an HTTP response.

  • url (str) – The URL that produced the error.

Variables: