Skip to content

FL Tasks

Exceptions for FL Tasks.

FLTaskError

Bases: FedRAGError

Base fl task error for all fl-task-related exceptions.

Source code in src/fed_rag/exceptions/fl_tasks.py
6
7
8
9
class FLTaskError(FedRAGError):
    """Base fl task error for all fl-task-related exceptions."""

    pass

MissingRequiredNetParam

Bases: FLTaskError

Raised when invoking fl_task.server without passing the specified model/net param.

Source code in src/fed_rag/exceptions/fl_tasks.py
class MissingRequiredNetParam(FLTaskError):
    """Raised when invoking fl_task.server without passing the specified model/net param."""

    pass

NetTypeMismatch

Bases: FLTaskError

Raised when a trainer and tester spec have differing net_parameter_class_name.

This indicates that the these methods have different types for the net_parameter.

Source code in src/fed_rag/exceptions/fl_tasks.py
class NetTypeMismatch(FLTaskError):
    """Raised when a `trainer` and `tester` spec have differing `net_parameter_class_name`.

    This indicates that the these methods have different types for the `net_parameter`.
    """

    pass