jina.excepts

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.DriverError[source]

Bases: Exception

Driver related exceptions

exception jina.excepts.RuntimeTerminated[source]

Bases: KeyboardInterrupt

The event loop of BasePea ends

exception jina.excepts.PodRunTimeError[source]

Bases: Exception

The error propagated by Pods when Executor throws an exception

exception jina.excepts.DriverNotInstalled[source]

Bases: jina.excepts.DriverError

Driver is not installed in the BasePea

exception jina.excepts.NoDriverForRequest[source]

Bases: jina.excepts.DriverError

No matched driver for this request

exception jina.excepts.UnattachedDriver[source]

Bases: jina.excepts.DriverError

Driver is not attached to any BasePea or executor

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.FlowConnectivityError[source]

Bases: Exception

Flow exception when the flow is not connective via network.

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.EmptyExecutorYAML[source]

Bases: Exception

The yaml config file is empty, nothing to read from there.

exception jina.excepts.BadConfigSource[source]

Bases: FileNotFoundError

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

exception jina.excepts.BadWorkspace[source]

Bases: Exception

Can not determine the separate storage strategy for the executor

exception jina.excepts.BadClient[source]

Bases: Exception

A wrongly defined grpc 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.BadPersistantFile[source]

Bases: Exception

Bad or broken dump file that can not be deserialized with pickle.load

exception jina.excepts.GRPCServerError[source]

Bases: Exception

Can not connect to the grpc gateway

exception jina.excepts.GatewayPartialMessage[source]

Bases: Exception

Gateway receives a multi-part message but it can not handle it

exception jina.excepts.UndefinedModel[source]

Bases: Exception

Any time a non-defined model is tried to be used

exception jina.excepts.MongoDBException[source]

Bases: Exception

Any errors raised by MongoDb

exception jina.excepts.TimedOutException[source]

Bases: Exception

Errors raised for timeout operations

exception jina.excepts.DockerLoginFailed[source]

Bases: Exception

Exception to raise for docker hub login failures

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.HubBuilderError[source]

Bases: Exception

Base exception to raise when jina hub build fails

exception jina.excepts.HubBuilderBuildError[source]

Bases: jina.excepts.HubBuilderError

Exception to raise when jina hub build fails to build image

exception jina.excepts.HubBuilderTestError[source]

Bases: jina.excepts.HubBuilderError

Exception to raise when jina hub build fails to test image

exception jina.excepts.CompressionRateTooLow[source]

Bases: Exception

Compression rate is too low, no need to compression

exception jina.excepts.DryRunException[source]

Bases: Exception

Dryrun is not successful on the given flow

exception jina.excepts.BadDocID[source]

Bases: Exception

Exception when user give a non-hex string as the doc id

exception jina.excepts.BadDocType[source]

Bases: TypeError

Exception when can not construct a document from the given data

exception jina.excepts.BadQueryLangType[source]

Bases: TypeError

Exception when can not construct a query language 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.LengthMismatchException[source]

Bases: Exception

Exception when length of two items should be identical while not

exception jina.excepts.ImageAlreadyExists[source]

Bases: Exception

Exception when an image with the name, module version, and Jina version already exists on the Hub

exception jina.excepts.BadFlowYAMLVersion[source]

Bases: Exception

Exception when Flow YAML config specifies a wrong version number

exception jina.excepts.LookupyError[source]

Bases: Exception

Base exception class for all exceptions raised by lookupy

exception jina.excepts.EventLoopError[source]

Bases: Exception

Exception when a running event loop is found but not under jupyter or ipython

exception jina.excepts.ZMQSocketError[source]

Bases: Exception

Exeception when ZMQlet/ZMQStreamlet can not be initialized

exception jina.excepts.HubLoginRequired[source]

Bases: Exception

Exception to raise for jina hub login

exception jina.excepts.DaemonConnectivityError[source]

Bases: Exception

Exception to raise when jina daemon is not connectable