Skip to content

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

InternalErrorException()

Bases: PulpException

Exception to signal that an unexpected internal error occurred.

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()

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()

Bases: PulpException

Raised when attempting to delete a repository version that cannot be deleted

exception_to_dict(exc)

Return a dictionary representation of an Exception.

:param exc: Exception that is being serialized :type exc: Exception

:return: dictionary representing the Exception :rtype: dict