Enumerationswift-package-manager 6.0.1PackageRegistry
RegistryError
RegistryClient.swift:1843enum RegistryError
enum RegistryError
import PackageRegistry
case registryNotConfigured(scope: PackageIdentity.Scope?)
case invalidPackageIdentity(PackageIdentity)
case invalidURL(URL)
case invalidResponseStatus(expected: [Int], actual: Int)
case invalidContentVersion(expected: String, actual: String?)
case invalidContentType(expected: String, actual: String?)
case invalidResponse
case missingSourceArchive
case invalidSourceArchive
case unsupportedHashAlgorithm(String)
case failedToComputeChecksum(Error)
case checksumChanged(latest: String, previous: String)
case invalidChecksum(expected: String, actual: String)
case pathAlreadyExists(AbsolutePath)
case failedRetrievingReleases(registry: Registry, package: PackageIdentity, error: Error)
case failedRetrievingReleaseInfo(registry: Registry, package: PackageIdentity, version: Version, error: Error)
case failedRetrievingReleaseChecksum(registry: Registry, package: PackageIdentity, version: Version, error: Error)
case failedRetrievingManifest(registry: Registry, package: PackageIdentity, version: Version, error: Error)
case failedDownloadingSourceArchive(registry: Registry, package: PackageIdentity, version: Version, error: Error)
case failedIdentityLookup(registry: Registry, scmURL: SourceControlURL, error: Error)
case failedLoadingPackageArchive(AbsolutePath)
case failedLoadingPackageMetadata(AbsolutePath)
case failedPublishing(Error)
case missingPublishingLocation
case serverError(code: Int, details: String)
case clientError(code: Int, details: String)
case unauthorized
case authenticationMethodNotSupported
case forbidden
case loginFailed(url: URL, error: Error)
case availabilityCheckFailed(registry: Registry, error: Error)
case registryNotAvailable(Registry)
case packageNotFound
case packageVersionNotFound
case sourceArchiveMissingChecksum(registry: Registry, package: PackageIdentity, version: Version)
case sourceArchiveNotSigned(registry: Registry, package: PackageIdentity, version: Version)
case failedLoadingSignature
case failedRetrievingSourceArchiveSignature(registry: Registry, package: PackageIdentity, version: Version, error: Error)
case manifestNotSigned(registry: Registry, package: PackageIdentity, version: Version, toolsVersion: ToolsVersion?)
case missingConfiguration(details: String)
case badConfiguration(details: String)
case missingSignatureFormat
case unknownSignatureFormat(String)
case invalidSignature(reason: String)
case invalidSigningCertificate(reason: String)
case signerNotTrusted(PackageIdentity, SigningEntity)
case failedToValidateSignature(Error)
case signingEntityForReleaseChanged(registry: Registry, package: PackageIdentity, version: Version, latest: SigningEntity?, previous: SigningEntity)
case signingEntityForPackageChanged(registry: Registry, package: PackageIdentity, version: Version, latest: SigningEntity?, previous: SigningEntity, previousVersion: Version)
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Sendable
var description: String { get }
var interpolationDescription: String { get }
var localizedDescription: String { get }
Retrieve the localized description for this error.