exceptions
Custom exceptions for the federated package.
Classes
AggregatorError
class AggregatorError(*args, **kwargs):Error related to Aggregator classes.
Ancestors
- BitfountError
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
AlgorithmError
class AlgorithmError(*args, **kwargs):Error raised during a worker-side algorithm run.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
BatchResilienceAbortError
class BatchResilienceAbortError( error_message: str, consecutive_failures: Optional[int] = None, failed_batches: Optional[dict[int, Exception]] = None,):Error raised when batch resilience system aborts due to consecutive failures.
Arguments
error_message: Description of why the task was aborted.consecutive_failures: Number of consecutive failures that triggered abort.failed_batches: Dictionary mapping batch numbers to their exceptions.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
BitfountTaskStartError
class BitfountTaskStartError(*args, **kwargs):Raised when an issue occurs whilst trying to start a task with pods.
Ancestors
- BitfountError
- builtins.RuntimeError
- builtins.Exception
- builtins.BaseException
DPNotAppliedError
class DPNotAppliedError(*args, **kwargs):Error if DP could not be applied to a model.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
DPParameterError
class DPParameterError(*args, **kwargs):Error if any of given dp params are not allowed.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
DataProcessingError
class DataProcessingError(*args, **kwargs):Error related to data processing.
This is distinct from DataSourceError, as it is related to later processing of the data. Raised by the ophthalmology algorithms.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
MessageHandlerDispatchError
class MessageHandlerDispatchError(*args, **kwargs):Error raised when there is a problem dispatching messages to handlers.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
MessageHandlerNotFoundError
class MessageHandlerNotFoundError(*args, **kwargs):Error raised when no registered message handler can be found.
Ancestors
- MessageHandlerDispatchError
- BitfountError
- builtins.Exception
- builtins.BaseException
MessageRetrievalError
class MessageRetrievalError(*args, **kwargs):Raised when an error occurs whilst retrieving a message from message service.
Ancestors
- BitfountError
- builtins.RuntimeError
- builtins.Exception
- builtins.BaseException
MessageTypeSpecificHandlerNotFoundError
class MessageTypeSpecificHandlerNotFoundError(*args, **kwargs):Error raised when no non-universal registered message handler can be found.
Ancestors
- MessageHandlerDispatchError
- BitfountError
- builtins.Exception
- builtins.BaseException
Variables
- static
universal_dispatches : list[Union[ConcurrentFuture, _PriorityHandler]]
NoDataError
class NoDataError(*args, **kwargs):Error when no data is found.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
NoNewDataError
class NoNewDataError(*args, **kwargs):Error when run_on_new_data_only is True but no new records are found.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
PodConnectFailedError
class PodConnectFailedError(*args, **kwargs):The message service has not correctly connected the pod.
Ancestors
- BitfountError
- builtins.TypeError
- builtins.Exception
- builtins.BaseException
PodNameError
class PodNameError(*args, **kwargs):Error related to given Pod name.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
PodRegistrationError
class PodRegistrationError(*args, **kwargs):Error related to registering a Pod with BitfountHub.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
PodResponseError
class PodResponseError(*args, **kwargs):Pod rejected or failed to respond to a task request.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
PodSchemaMismatchError
class PodSchemaMismatchError(*args, **kwargs):Error raised when a pod schema does not match the task schema.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
PrivateSqlError
class PrivateSqlError(*args, **kwargs):An exception for any issues relating to the PrivateSQL algorithm.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
ProtocolError
class ProtocolError(*args, **kwargs):Error raised during protocol run.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException
TaskAbortError
class TaskAbortError( error_message: str, reason: Optional[Reason] = None, message_already_sent: bool = False,):Error raised when a TASK_ABORT is received from a pod.
Initialises TaskAbortError.
Arguments
error_message: Describes the reason for the task being aborted.reason: Machine-reasable reason for the task being aborted.message_already_sent: Whether a message has already been sent to the "other side" (i.e. modeller or pod) of the task run, or whether a TASK_ABORT message still needs to be sent.
Ancestors
- BitfountError
- builtins.Exception
- builtins.BaseException