nvflare.apis.fl_exception module

exception FLCommunicationError(message, exception=None)[source]

Bases: Exception

Base class for fed_learn communication exceptions.

Init the FLCommunicationError.

Parameters:

exception – grpc.RpcError when trying to register gprc channel

exception NotAuthenticated[source]

Bases: Exception

Raised when client registration is not authenticated.

exception NotAuthorized[source]

Bases: Exception

Raised when a job is not authorized

exception NotReadyToEndRun[source]

Bases: Exception

Raised when a component is not ready to end run

exception TaskExecutionError[source]

Bases: Exception

Raised when a task execution failed

exception UnsafeComponentError[source]

Bases: Exception

Raised when a component in the configuration is detected to be unsafe

exception UnsafeJobError[source]

Bases: Exception

Raised when a job is detected to be unsafe