pulp.exceptions¶
All exceptions documented here should be imported directly from the pulp.exceptions
namespace.
pulpcore.exceptions
¶
pulp.exceptions.base¶
pulpcore.exceptions.base
¶
PulpException(error_code)
¶
Bases: Exception
Base exception class for Pulp.
:param error_code: unique error code :type error_code: str
ResourceImmutableError(model)
¶
Bases: PulpException
Exceptions that are raised due to trying to update an immutable resource
Parameters:
-
model
(Model
) –that the user is trying to update
AdvisoryLockError
¶
Bases: Exception
Exception to signal that a lock could not be acquired.
TimeoutException(url)
¶
Bases: PulpException
Exception to signal timeout error.
:param url: the url the download for timed out :type url: str
DomainProtectedError()
¶
Bases: PulpException
Exception to signal that a domain the user is trying to delete still contains repositories with content.
exception_to_dict(exc, traceback=None)
¶
Return a dictionary representation of an Exception.
:param exc: Exception that is being serialized :type exc: Exception :param traceback: String representation of a traceback generated when the exception occurred. :type traceback: str
:return: dictionary representing the Exception :rtype: dict