fl_server_ai.exceptions ¶
Classes:
| Name | Description |
|---|---|
AggregationException | Exception raised for errors in the aggregation process. |
ClientNotificationRejectionException | Exception raised when a client rejects a notification. |
NotificationException | Exception raised for errors in the notification process. |
Classes¶
AggregationException ¶
Bases: Exception
flowchart TD
fl_server_ai.exceptions.AggregationException[AggregationException]
click fl_server_ai.exceptions.AggregationException href "" "fl_server_ai.exceptions.AggregationException"
Exception raised for errors in the aggregation process.
This is a custom exception class that should be raised when there is an error during the aggregation process.
- API Reference
fl_server_aiaggregation
ClientNotificationRejectionException ¶
Bases: NotificationException
flowchart TD
fl_server_ai.exceptions.ClientNotificationRejectionException[ClientNotificationRejectionException]
fl_server_ai.exceptions.NotificationException[NotificationException]
fl_server_ai.exceptions.NotificationException --> fl_server_ai.exceptions.ClientNotificationRejectionException
click fl_server_ai.exceptions.ClientNotificationRejectionException href "" "fl_server_ai.exceptions.ClientNotificationRejectionException"
click fl_server_ai.exceptions.NotificationException href "" "fl_server_ai.exceptions.NotificationException"
Exception raised when a client rejects a notification.
This is a custom exception class that should be raised when a client rejects a notification. It inherits from NotificationException and adds additional attributes related to the client's response.
- API Reference
fl_server_ainotificationnotification Functionssend_notification
Methods:
| Name | Description |
|---|---|
__init__ | |
Attributes:
| Name | Type | Description |
|---|---|---|
response | The client's response to the notification. | |
status_code | The HTTP status code of the client's response. |
Source code in fl_server_ai/exceptions.py
NotificationException ¶
Bases: Exception
flowchart TD
fl_server_ai.exceptions.NotificationException[NotificationException]
click fl_server_ai.exceptions.NotificationException href "" "fl_server_ai.exceptions.NotificationException"
Exception raised for errors in the notification process.
This is a custom exception class that should be raised when there is an error during the notification process.
- API Reference
fl_server_ainotificationnotification Functionssend_notification
- API Reference
fl_server_aiexceptions ClassesClientNotificationRejectionException
- API Reference
fl_server_ainotificationtraininground_start Functionstraining_notification_callback_failure
Methods:
| Name | Description |
|---|---|
__init__ | |
Attributes:
| Name | Type | Description |
|---|---|---|
endpoint_url | The URL of the endpoint that the notification was sent to. | |
inner_exception | The original exception that caused the notification error. | |
json_data | The JSON data that was sent in the notification. | |
max_retries | The maximum number of times to retry the notification. | |
notification_return_object | The object to return if the notification fails. |
Source code in fl_server_ai/exceptions.py
Attributes¶
endpoint_url instance-attribute ¶
The URL of the endpoint that the notification was sent to.
inner_exception instance-attribute ¶
The original exception that caused the notification error.
json_data instance-attribute ¶
The JSON data that was sent in the notification.
max_retries instance-attribute ¶
The maximum number of times to retry the notification.
notification_return_object instance-attribute ¶
The object to return if the notification fails.
Functions¶
__init__ ¶
__init__(endpoint_url: str, json_data: Any, max_retries: int, return_obj: Any = None, inner_exception: Exception | None = None, *args, **kwargs)