daemon.excepts module

exception daemon.excepts.DockerNotFoundException[source]

Bases: Exception

Exception if docker client cannot communicate with dockerd

exception daemon.excepts.DockerImageException[source]

Bases: Exception

Exception while handling a docker image in the workspace

exception daemon.excepts.DockerNetworkException[source]

Bases: Exception

Exception while handling docker networks in the workspace

exception daemon.excepts.DockerContainerException[source]

Bases: Exception

Exception while handling a docker container in the workspace

exception daemon.excepts.Runtime400Exception[source]

Bases: Exception

Exception when daemon FastAPI app is running

async daemon.excepts.daemon_runtime_exception_handler(request, ex)[source]

Exception handler for all Runtime400Exceptions

Parameters
  • request (Request) – starlette request

  • ex (Runtime400Exception) – actual Runtime400Exception

Returns

json response representing the error

async daemon.excepts.validation_exception_handler(request, ex)[source]

Exception handler for all RequestValidationError raised by pydantic

Parameters
  • request (Request) – starlette request

  • ex (RequestValidationError) – actual Validation exception

Returns

json response representing the error