mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* feat: Add support for sandbox diagnostic log * fix: Normalize and prioritise sandbox violations * fix: Code review fixes
19 lines
858 B
Go
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"
|
|
)
|