ControllerWebError

exception rubin.nublado.spawner.ControllerWebError(message, *, method=None, url=None, status=None, reason=None, body=None)

Bases: Exception

Failure to talk to the lab controller API.

Parameters:
  • message (str) – Exception string value, which is the default Slack message.

  • method (str | None, default: None) – Method of request.

  • url (str | None, default: None) – URL of the request.

  • status (int | None, default: None) – Status code of failure, if any.

  • reason (str | None, default: None) – Reason string of failure, if any.

  • body (str | None, default: None) – Body of failure message, if any.

classmethod from_exception(exc)

Create an exception from an httpx exception.

Parameters:

exc (HTTPError) – Exception from httpx.

Returns:

Newly-constructed exception.

Return type:

ControllerWebError