Skip to content

pulpcore.plugin.exceptions

All exceptions documented here should be imported directly from the pulpcore.plugin.exceptions namespace.

pulpcore.plugin.exceptions

ContentOverwriteError(pulp_type, conflict_map)

Bases: ValidationError

Raised when content would overwrite existing repository content and overwrite is disabled.

DigestValidationError(actual, expected, *args, url=None, **kwargs)

Bases: ValidationError

Raised when a file fails to validate a digest checksum.

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

HttpResponseError(url, status, message)

Bases: PulpException

Raised when a remote server returns an HTTP error response after retries are exhausted.

InvalidSignatureError(message=None, verified=None)

Bases: ValidationError

Raised when a signature could not be verified.

MissingDigestValidationError(message=None)

Bases: ValidationError

Raised when attempting to save() an Artifact with an incomplete set of checksums.

PublishError(message=None)

Bases: PulpException

Raised when a publish operation fails.

:param message: Description of the publish error :type message: str

PulpException(error_code=None)

Bases: Exception

Base exception class for Pulp.

RemoteConnectionError(url, details)

Bases: PulpException

Raised when a connection to a remote server fails after retries are exhausted.

ReplicateError(error_code=None)

Bases: PulpException

Raised when a replicate operation fails.

SizeValidationError(actual, expected, *args, url=None, **kwargs)

Bases: ValidationError

Raised when a file fails to validate a size checksum.

SslConnectionError(url, details)

Bases: PulpException

Raised when an SSL/TLS connection fails after retries are exhausted.

SyncError(message)

Bases: PulpException

Raised when a sync operation fails.

:param message: Description of the sync 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

TimeoutException(url)

Bases: PulpException

Exception to signal timeout error.

:param url: the url the download for timed out :type url: str

UnsupportedDigestValidationError(message=None)

Bases: ValidationError

Raised when an attempt is made to use a checksum-type that is not enabled/available.

ValidationError(msg)

Bases: PulpException

A base class for all Validation Errors.