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=None)
¶
Bases: Exception
Base exception class for Pulp.
InternalErrorException(error_code=None)
¶
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
TimeoutException(url)
¶
Bases: PulpException
Exception to signal timeout error.
:param url: the url the download for timed out :type url: str
DomainProtectedError(error_code=None)
¶
Bases: PulpException
Exception to signal that a domain the user is trying to delete still contains repositories with content.
DnsDomainNameException(url)
¶
Bases: PulpException
Exception to signal that dns could not resolve the domain name for specified url.
:param url: the url that dns could not resolve :type url: str
UrlSchemeNotSupportedError(url)
¶
Bases: PulpException
Exception raised when a URL scheme (e.g. 'ftp://') is provided that Pulp does not have a registered handler for.
:param url: The full URL that failed validation. :type url: str
ProxyAuthenticationError(proxy_url)
¶
Bases: PulpException
Exception to signal that the proxy server requires authentication but it was not provided or is invalid
:param proxy_url: The URL of the proxy server. :type proxy_url: str
RepositoryVersionDeleteError(message=None)
¶
Bases: PulpException
Raised when attempting to delete a repository version that cannot be deleted
:param message: Description of the repository version delete error :type message: str
PublishError(message=None)
¶
Bases: PulpException
Raised when a publish operation fails.
:param message: Description of the publish error :type message: str
SyncError(message)
¶
Bases: PulpException
Raised when a sync operation fails.
:param message: Description of the sync error :type message: str
ExternalServiceError(service_name, details=None)
¶
Bases: PulpException
Raised when an external API or service fails.
:param service_name: Name of the external service :type service_name: str :param details: Additional details about the failure :type details: str or None
ExportError(message)
¶
Bases: PulpException
Raised when export operation fails due to configuration or preconditions.
:param message: Description of the export error :type message: str
ImportError(message)
¶
Bases: PulpException
Raised when an import operation fails due to configuration or preconditions.
:param message: Description of the import error :type message: str
SystemStateError(message)
¶
Bases: PulpException
Raised when system is in an unexpected state.
:param message: Description of the system state error :type message: str
ReplicateError(error_code=None)
¶
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