jina.excepts module

This modules defines all kinds of exceptions raised in Jina.

exception jina.excepts.NoExplicitMessage[source]

Bases: Exception

Waiting until all partial messages are received.

exception jina.excepts.ChainedPodException[source]

Bases: Exception

Chained exception from the last Pod.

exception jina.excepts.MismatchedVersion[source]

Bases: SystemError

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

exception jina.excepts.ExecutorFailToLoad[source]

Bases: SystemError

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

exception jina.excepts.RuntimeFailToStart[source]

Bases: SystemError

When pea/pod is failed to started.

exception jina.excepts.MemoryOverHighWatermark[source]

Bases: Exception

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

exception jina.excepts.NoAvailablePortError[source]

Bases: Exception

When no available random port could be found

exception jina.excepts.RuntimeTerminated[source]

Bases: KeyboardInterrupt

The event loop of BasePea ends.

exception jina.excepts.UnknownControlCommand[source]

Bases: RuntimeError

The control command received can not be recognized.

exception jina.excepts.FlowTopologyError[source]

Bases: Exception

Flow exception when the topology is ambiguous.

exception jina.excepts.FlowMissingPodError[source]

Bases: Exception

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

exception jina.excepts.FlowBuildLevelError[source]

Bases: Exception

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

exception jina.excepts.BadConfigSource[source]

Bases: FileNotFoundError

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

exception jina.excepts.BadClient[source]

Bases: Exception

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

exception jina.excepts.BadClientCallback[source]

Bases: jina.excepts.BadClient

Error in the callback function on the client side.

exception jina.excepts.BadClientInput[source]

Bases: jina.excepts.BadClient

Error in the request generator function on the client side.

exception jina.excepts.ModelCheckpointNotExist[source]

Bases: FileNotFoundError

Exception to raise for executors depending on pretrained model files when they do not exist.

exception jina.excepts.PretrainedModelFileDoesNotExist[source]

Bases: jina.excepts.ModelCheckpointNotExist

Depreciated, used in the hub executors.

TODO: to be removed after hub executors uses ModelCheckpointNotExist

exception jina.excepts.HubDownloadError[source]

Bases: Exception

Exception to raise when jina hub pull fails to download package.

exception jina.excepts.BadDocType[source]

Bases: TypeError

Exception when can not construct a document from the given data.

exception jina.excepts.BadRequestType[source]

Bases: TypeError

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

exception jina.excepts.BadNamedScoreType[source]

Bases: TypeError

Exception when can not construct a named score from the given data.

exception jina.excepts.BadImageNameError[source]

Bases: Exception

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

exception jina.excepts.BadYAMLVersion[source]

Bases: Exception

Exception when YAML config specifies a wrong version number.

exception jina.excepts.DaemonConnectivityError[source]

Bases: Exception

Exception to raise when jina daemon is not reachable.

exception jina.excepts.DaemonWorkspaceCreationFailed[source]

Bases: Exception

Exception to raise when jina daemon is not connectable.

exception jina.excepts.DaemonPeaCreationFailed[source]

Bases: Exception

Exception to raise when jina daemon is not connectable.

exception jina.excepts.NotSupportedError[source]

Bases: Exception

Exeception when user accidentally using a retired argument.

exception jina.excepts.ValidationError[source]

Bases: Exception

Raised when a certain validation cannot be completed.

exception jina.excepts.SocketTypeError[source]

Bases: Exception

Raised when such socket type is not supported or does not exist.

exception jina.excepts.RoutingTableCyclicError[source]

Bases: Exception

Raised when the routing graph has cycles.

exception jina.excepts.RuntimeRunForeverEarlyError[source]

Bases: Exception

Raised when an error occurs when starting the run_forever of Runtime

exception jina.excepts.DockerVersionError[source]

Bases: SystemError

Raised when the docker version is incompatible

exception jina.excepts.DaemonInvalidDockerfile[source]

Bases: FileNotFoundError

Raised when invalid dockerfile is passed to JinaD