jina.excepts module

This modules defines all kinds of exceptions raised in Jina.

class jina.excepts.BaseJinaExeception[source]

Bases: object

A base class for all exceptions raised by Jina

exception jina.excepts.NoExplicitMessage[source]

Bases: Exception, jina.excepts.BaseJinaExeception

Waiting until all partial messages are received.

exception jina.excepts.MismatchedVersion[source]

Bases: SystemError, jina.excepts.BaseJinaExeception

When the jina version info of the incoming message does not match the local Jina version.

exception jina.excepts.ExecutorFailToLoad[source]

Bases: SystemError, jina.excepts.BaseJinaExeception

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

exception jina.excepts.RuntimeFailToStart[source]

Bases: SystemError, jina.excepts.BaseJinaExeception

When pod/deployment is failed to started.

exception jina.excepts.ScalingFails[source]

Bases: SystemError, jina.excepts.BaseJinaExeception

When scaling is unsuccessful for an Executor.

exception jina.excepts.MemoryOverHighWatermark[source]

Bases: Exception, jina.excepts.BaseJinaExeception

When the memory usage is over the defined high water mark.

exception jina.excepts.NoAvailablePortError[source]

Bases: Exception, jina.excepts.BaseJinaExeception

When no available random port could be found

exception jina.excepts.RuntimeTerminated[source]

Bases: KeyboardInterrupt, jina.excepts.BaseJinaExeception

The event loop of BasePod ends.

exception jina.excepts.UnknownControlCommand[source]

Bases: RuntimeError, jina.excepts.BaseJinaExeception

The control command received can not be recognized.

exception jina.excepts.FlowTopologyError[source]

Bases: Exception, jina.excepts.BaseJinaExeception

Flow exception when the topology is ambiguous.

exception jina.excepts.FlowMissingDeploymentError[source]

Bases: Exception, jina.excepts.BaseJinaExeception

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

exception jina.excepts.FlowBuildLevelError[source]

Bases: Exception, jina.excepts.BaseJinaExeception

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

exception jina.excepts.BadConfigSource[source]

Bases: FileNotFoundError, jina.excepts.BaseJinaExeception

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

exception jina.excepts.BadClient[source]

Bases: Exception, jina.excepts.BaseJinaExeception

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

exception jina.excepts.BadClientCallback[source]

Bases: jina.excepts.BadClient, jina.excepts.BaseJinaExeception

Error in the callback function on the client side.

exception jina.excepts.BadClientInput[source]

Bases: jina.excepts.BadClient, jina.excepts.BaseJinaExeception

Error in the request generator function on the client side.

exception jina.excepts.BadRequestType[source]

Bases: TypeError, jina.excepts.BaseJinaExeception

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

exception jina.excepts.BadImageNameError[source]

Bases: Exception, jina.excepts.BaseJinaExeception

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

exception jina.excepts.BadYAMLVersion[source]

Bases: Exception, jina.excepts.BaseJinaExeception

Exception when YAML config specifies a wrong version number.

exception jina.excepts.DaemonConnectivityError[source]

Bases: Exception, jina.excepts.BaseJinaExeception

Exception to raise when jina daemon is not reachable.

exception jina.excepts.DaemonWorkspaceCreationFailed[source]

Bases: Exception, jina.excepts.BaseJinaExeception

Exception to raise when jina daemon is not connectable.

exception jina.excepts.DaemonPodCreationFailed[source]

Bases: Exception, jina.excepts.BaseJinaExeception

Exception to raise when jina daemon is not connectable.

exception jina.excepts.NotSupportedError[source]

Bases: Exception, jina.excepts.BaseJinaExeception

Exception when user accidentally using a retired argument.

exception jina.excepts.RuntimeRunForeverEarlyError[source]

Bases: Exception, jina.excepts.BaseJinaExeception

Raised when an error occurs when starting the run_forever of Runtime

exception jina.excepts.DockerVersionError[source]

Bases: SystemError, jina.excepts.BaseJinaExeception

Raised when the docker version is incompatible

exception jina.excepts.DaemonInvalidDockerfile[source]

Bases: FileNotFoundError, jina.excepts.BaseJinaExeception

Raised when invalid dockerfile is passed to JinaD

exception jina.excepts.NoContainerizedError[source]

Bases: Exception, jina.excepts.BaseJinaExeception

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