syft.exceptions¶
Specific Pysyft exceptions.
Module Contents¶
-
exception
syft.exceptions.DependencyError(package, pypi_alias=None)¶ Bases:
Exception
-
exception
syft.exceptions.PureFrameworkTensorFoundError¶ Bases:
BaseExceptionException raised for errors in the input. This error is used in a recursive analysis of the args provided as an input of a function, to break the recursion if a FrameworkTensor is found as it means that _probably_ all the tensors are pure torch/tensorflow and the function can be applied natively on this input.
-
expression -- input expression in which the error occurred
-
message -- explanation of the error
-
-
exception
syft.exceptions.RemoteObjectFoundError(pointer)¶ Bases:
BaseExceptionException raised for errors in the input. This error is used in a context similar to PureFrameworkTensorFoundError but to indicate that a Pointer to a remote tensor was found in the input and thus that the command should be send elsewhere. The pointer retrieved by the error gives the location where the command should be sent.
-
expression -- input expression in which the error occurred
-
message -- explanation of the error
-
-
exception
syft.exceptions.InvalidTensorForRemoteGet(tensor: object)¶ Bases:
ExceptionRaised when a chain of pointer tensors is not provided for remote_get.
-
exception
syft.exceptions.WorkerNotFoundException¶ Bases:
ExceptionRaised when a non-existent worker is requested.
-
exception
syft.exceptions.CompressionNotFoundException¶ Bases:
ExceptionRaised when a non existent compression/decompression scheme is requested.
-
exception
syft.exceptions.CannotRequestObjectAttribute¶ Bases:
ExceptionRaised when .get() is called on a pointer which points to an attribute of another object.
-
exception
syft.exceptions.TensorsNotCollocatedException(tensor_a, tensor_b, attr='a method')¶ Bases:
ExceptionRaised when a command is executed on two tensors which are not on the same machine. The goal is to provide as useful input as possible to help the user identify which tensors are where so that they can debug which one needs to be moved.
-
exception
syft.exceptions.ResponseSignatureError(ids_generated=None)¶ Bases:
ExceptionRaised when the return of a hooked function is not correctly predicted (when defining in advance ids for results)
-
get_attributes(self)¶ Specify all the attributes need to report an error correctly.
-
static
simplify(worker: sy.workers.AbstractWorker, e)¶ Serialize information about an Exception which was raised to forward it
-
static
detail(worker: sy.workers.AbstractWorker, error_tuple: Tuple[str, str, dict])¶ Detail and re-raise an Exception forwarded by another worker
-
-
exception
syft.exceptions.SendNotPermittedError¶ Bases:
ExceptionRaised when calling send on a tensor which does not allow send to be called on it. This can happen do to sensitivity being too high
-
static
simplify(worker: sy.workers.AbstractWorker, e)¶ Serialize information about an Exception which was raised to forward it
-
static
detail(worker: sy.workers.AbstractWorker, error_tuple: Tuple[str, str, dict])¶ Detail and re-raise an Exception forwarded by another worker
-
static
-
exception
syft.exceptions.GetNotPermittedError¶ Bases:
ExceptionRaised when calling get on a pointer to a tensor which does not allow get to be called on it. This can happen do to sensitivity being too high
-
static
simplify(worker: sy.workers.AbstractWorker, e)¶ Serialize information about an Exception which was raised to forward it
-
static
detail(worker: sy.workers.AbstractWorker, error_tuple: Tuple[str, str, dict])¶ Detail and re-raise an Exception forwarded by another worker
-
static
-
exception
syft.exceptions.IdNotUniqueError¶ Bases:
ExceptionRaised by the ID Provider when setting ids that have already been generated
-
exception
syft.exceptions.PlanCommandUnknownError(command_name: object)¶ Bases:
ExceptionRaised when an unknown plan command execution is requested.
-
exception
syft.exceptions.ObjectNotFoundError(obj_id, worker)¶ Bases:
ExceptionRaised when object with given object id is not found on worker
-
obj_id -- id of the object with which the interaction is attempted
-
worker -- virtual worker on which the interaction is attempted
-
-
exception
syft.exceptions.InvalidProtocolFileError¶ Bases:
ExceptionRaised when PySyft protocol file cannot be loaded.
-
exception
syft.exceptions.UndefinedProtocolTypeError¶ Bases:
ExceptionRaised when trying to serialize type that is not defined in protocol file.
-
exception
syft.exceptions.UndefinedProtocolTypePropertyError¶ Bases:
ExceptionRaised when trying to get protocol type property that is not defined in protocol file.
-
syft.exceptions.route_method_exception(exception, self, args, kwargs)¶