Files
pmg/errcodes/codes.go
T

43 lines
1.7 KiB
Go
Raw Normal View History

package errcodes
const (
InvalidArgument = "InvalidArgument"
PermissionDenied = "PermissionDenied"
NotFound = "NotFound"
Timeout = "Timeout"
Canceled = "Canceled"
UnexpectedEOF = "UnexpectedEOF"
Lifecycle = "Lifecycle"
Network = "Network"
PackageManagerExecutionFailed = "PackageManagerExecutionFailed"
PackageManagerNotFound = "PackageManagerNotFound"
2026-05-24 12:46:06 +05:30
BubblewrapNotFound = "BubblewrapNotFound"
// Package manager error codes.
DependencyResolutionFailed = "DependencyResolutionFailed"
PackageParseFailed = "PackageParseFailed"
PackageAuthorNotFound = "PackageAuthorNotFound"
GitHubRateLimitExceeded = "GitHubRateLimitExceeded"
// Certificate trust store error codes.
CertGeneration = "CertGeneration"
CertPersistence = "CertPersistence"
CertTrustStore = "CertTrustStore"
UnsupportedPlatform = "UnsupportedPlatform"
// Sandbox error codes. SandboxRequiresProxy is returned when a sandbox
// policy enables network_via_proxy_only but no PMG proxy is running to
// confine traffic to.
SandboxRequiresProxy = "SandboxRequiresProxy"
// Proxy error codes. ProxyPolicyViolation is returned when the proxy blocked
// one or more packages by policy (malware, dependency cooldown, or a denied
// suspicious package) and the run was gated with --fail-on-violation.
ProxyPolicyViolation = "ProxyPolicyViolation"
2026-05-24 12:46:06 +05:30
// Unknown mirrors the default code that dry/usefulerror returns for errors
// created without an explicit code, so unset and explicitly-unknown errors
// classify identically (e.g. the bug-report hint in ui.ErrorExit).
Unknown = "unknown"
)