jina.excepts module#

This modules defines all kinds of exceptions raised in Jina.

exception jina.excepts.BaseJinaException[source]#

Bases: BaseException

A base class for all exceptions raised by Jina

exception jina.excepts.ExecutorFailToLoad[source]#

Bases: SystemError, BaseJinaException

When the executor can not be loaded in pod/deployment.

exception jina.excepts.RuntimeFailToStart[source]#

Bases: SystemError, BaseJinaException

When pod/deployment is failed to started.

exception jina.excepts.ScalingFails[source]#

Bases: SystemError, BaseJinaException

When scaling is unsuccessful for an Executor.

exception jina.excepts.RuntimeTerminated[source]#

Bases: KeyboardInterrupt, BaseJinaException

The event loop of BasePod ends.

exception jina.excepts.FlowTopologyError[source]#

Bases: Exception, BaseJinaException

Flow exception when the topology is ambiguous.

exception jina.excepts.FlowMissingDeploymentError[source]#

Bases: Exception, BaseJinaException

Flow exception when a deployment can not be found in the flow.

exception jina.excepts.FlowBuildLevelError[source]#

Bases: Exception, BaseJinaException

Flow exception when required build level is higher than the current build level.

exception jina.excepts.BadConfigSource[source]#

Bases: FileNotFoundError, BaseJinaException

The yaml config file is bad, not loadable or not exist.

exception jina.excepts.BadClient[source]#

Bases: Exception, BaseJinaException

A wrongly defined client, can not communicate with jina server correctly.

exception jina.excepts.BadClientCallback[source]#

Bases: BadClient, BaseJinaException

Error in the callback function on the client side.

exception jina.excepts.BadClientInput[source]#

Bases: BadClient, BaseJinaException

Error in the request generator function on the client side.

exception jina.excepts.BadRequestType[source]#

Bases: TypeError, BaseJinaException

Exception when can not construct a request object from given data.

exception jina.excepts.BadClientResponse[source]#

Bases: Exception, BaseJinaException

Exception when can not construct a request object from given data.

exception jina.excepts.BadImageNameError[source]#

Bases: Exception, BaseJinaException

Exception when an image name can not be found either local & remote

exception jina.excepts.BadYAMLVersion[source]#

Bases: Exception, BaseJinaException

Exception when YAML config specifies a wrong version number.

exception jina.excepts.DaemonConnectivityError[source]#

Bases: Exception, BaseJinaException

Exception to raise when jina daemon is not reachable.

exception jina.excepts.DaemonWorkspaceCreationFailed[source]#

Bases: Exception, BaseJinaException

Exception to raise when jina daemon is not connectable.

exception jina.excepts.DaemonPodCreationFailed[source]#

Bases: Exception, BaseJinaException

Exception to raise when jina daemon is not connectable.

exception jina.excepts.NotSupportedError[source]#

Bases: Exception, BaseJinaException

Exception when user accidentally using a retired argument.

exception jina.excepts.RuntimeRunForeverEarlyError[source]#

Bases: Exception, BaseJinaException

Raised when an error occurs when starting the run_forever of Runtime

exception jina.excepts.DockerVersionError[source]#

Bases: SystemError, BaseJinaException

Raised when the docker version is incompatible

exception jina.excepts.DaemonInvalidDockerfile[source]#

Bases: FileNotFoundError, BaseJinaException

Raised when invalid dockerfile is passed to JinaD

exception jina.excepts.NoContainerizedError[source]#

Bases: Exception, BaseJinaException

Raised when trying to use non-containerized Executor in K8s or Docker Compose