Module leapyear.exceptions¶
All errors and exceptions.
-
exception
leapyear.exceptions.
ClientError
¶ General client errors.
-
exception
leapyear.exceptions.
ServantError
(response)¶ Error from Servant.
-
exception
leapyear.exceptions.
InvalidURL
¶ URL can not be parsed.
-
exception
leapyear.exceptions.
TLSError
¶ Errors from TLS.
-
exception
leapyear.exceptions.
InvalidJson
¶ Json was not constructed correctly.
-
exception
leapyear.exceptions.
ConnectionError
¶ Error establishing connection.
-
exception
leapyear.exceptions.
AsyncTimeoutError
¶ Async job timed out.
-
exception
leapyear.exceptions.
AsyncCancelledError
¶ Async job was cancelled.
-
exception
leapyear.exceptions.
GroupbyAggTooManyKeysError
¶ Too many keys for a GroupbyAgg operation.
-
exception
leapyear.exceptions.
DataSetTooSmallException
¶ Re-throw of DataSetTooSmall exception.
This exception is triggered and interrupts the computation when the LeapYear system is unable to guarantee a result that meets the target accuracy while staying within the maximum Privacy Exposure allowed for the computation.
The primary cause for this exception is that the data sample being analyzed is too small, and therefore providing an accurate result would reveal too much information about a single record.
-
exception
leapyear.exceptions.
DataSetSizeBlockedByPrivacyProfileException
(arg0, arg1)¶ Re-throw of DataSetSizeBlockedByProfile exception.
This exception is triggered and interrupts the computation when the LeapYear system detects that the data set size is smaller than the minimum size required by the privacy profile.
The primary cause for this exception is that the data sample being analyzed is too small, and therefore providing an accurate result would reveal too much information about a single record.
-
exception
leapyear.exceptions.
HighPrivacyExposureException
¶ Re-throw of HighPrivacyExposure exception.
This exception occurs when it is estimated that the Privacy Exposure will reach or exceed the Privacy Exposure Limit for that particular computation. This could be due to either:
the data sample is too small and LeapYear estimates that a large privacy exposure will be incurred, or
the computation involves a relation that generates a large sensitivity multiplier.
The precise reason for the exception is not made explicit because of potential privacy concerns.
-
exception
leapyear.exceptions.
SensitivityMultiplierTooLargeException
(arg0)¶ Re-throw of SensitivityMultiplierTooLarge exception.
This exception is triggered and interrupts a computation when the LeapYear system estimates that the computation:
will reach or exceed the maximum Privacy Exposure allowed for the computation; AND
is based on a derived dataset that generates an excessively large sensitivity multiplier.
-
leapyear.exceptions.
parse_server_error
(error)¶ Re-wrap the server errors into a python Exception.
Exception will have the correct name and inheritance hierarchy. The contents of the Exception is the string representation of the server error.
- Return type
-
leapyear.exceptions.
high_sensitivity_multiplier_text
(logbase10_sensitivity_multiplier)¶ Format the error message for high sensitivity multiplies with its value.
-
exception
leapyear.exceptions.
LoadUnsupportedModelException
(model)¶ This exception is raised when trying to load or save an unsupported type of model.
-
exception
leapyear.exceptions.
LoadModelMismatchException
(model, model_type)¶ This exception is raised when there is a mismatch with loaded and expected models.
-
exception
leapyear.exceptions.
LoadModelVersionException
(model, name_file)¶ This exception is raised when loading a module with a version not supported.
-
exception
leapyear.exceptions.
SaveUnsupportedModelException
(model)¶ This exception is raised when trying to save an unsupported model.