Skip to content

Module fl_server_core.exceptions

View Source
# SPDX-FileCopyrightText: 2024 Benedikt Franke <benedikt.franke@dlr.de>
# SPDX-FileCopyrightText: 2024 Florian Heinrich <florian.heinrich@dlr.de>
#
# SPDX-License-Identifier: Apache-2.0

class TorchDeserializationException(Exception):
    """
    Exception raised for errors in the deserialization process of PyTorch objects.

    This is a custom exception class that should be raised when there is an error during
    the deserialization of PyTorch objects.
    """
    pass

Classes

TorchDeserializationException

class TorchDeserializationException(
    /,
    *args,
    **kwargs
)

Exception raised for errors in the deserialization process of PyTorch objects.

This is a custom exception class that should be raised when there is an error during the deserialization of PyTorch objects.

View Source
class TorchDeserializationException(Exception):
    """
    Exception raised for errors in the deserialization process of PyTorch objects.

    This is a custom exception class that should be raised when there is an error during
    the deserialization of PyTorch objects.
    """
    pass

Ancestors (in MRO)

  • builtins.Exception
  • builtins.BaseException

Class variables

args

Methods

with_traceback

def with_traceback(
    ...
)

Exception.with_traceback(tb) --

set self.traceback to tb and return self.