Files
pmg/usefulerror/codes.go
T
Abhisek DattaandGitHub d993d57e3d feat: Add support for sandbox diagnostic log (#245)
* feat: Add support for sandbox diagnostic log

* fix: Normalize and prioritise sandbox violations

* fix: Code review fixes
2026-05-12 18:11:18 +05:30

19 lines
858 B
Go

package usefulerror
// Standard error codes that can be re-used across the project.
// We will use a human friendly format for the error codes and not align with posix error codes.
// Keep this minimal. Reuse first before adding new ones.
const (
ErrCodeInvalidArgument = "InvalidArgument"
ErrCodePermissionDenied = "PermissionDenied"
ErrCodeNotFound = "NotFound"
ErrCodeTimeout = "Timeout"
ErrCodeCanceled = "Canceled"
ErrCodeUnexpectedEOF = "UnexpectedEOF"
ErrCodeUnknown = "Unknown"
ErrCodeLifecycle = "Lifecycle"
ErrCodeNetwork = "Network"
ErrCodeSandboxViolation = "SandboxViolation"
ErrCodePackageManagerExecutionFailed = "PackageManagerExecutionFailed"
)