errors

package
v1.0.0-cli.0...-421df98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: AGPL-3.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound         = New(codes.NotFound, "resource does not exist")
	ErrAlreadyExists    = New(codes.AlreadyExists, "resource already exists")
	ErrInvalidPageSize  = New(codes.InvalidArgument, "page size is invalid")
	ErrInvalidPageToken = New(codes.InvalidArgument, "page token is invalid")
)
View Source
var (
	ErrAuthHeaderMissing = New(codes.Unauthenticated, "authorization header is missing")
	ErrInvalidToken      = New(codes.Unauthenticated, "invalid token")
	ErrPermissionDenied  = New(codes.PermissionDenied, "permission denied")
)
View Source
var (
	ErrChunkNotFound              = New(codes.NotFound, "chunk does not exist")
	ErrTooManyTags                = New(codes.InvalidArgument, "too many tags")
	ErrNameTooLong                = New(codes.InvalidArgument, "name is too long")
	ErrDescriptionTooLong         = New(codes.InvalidArgument, "description is too long")
	ErrInvalidChunkID             = New(codes.InvalidArgument, "chunk id is invalid")
	ErrInvalidName                = New(codes.InvalidArgument, "name is invalid")
	ErrInvalidThumbnailFormat     = New(codes.InvalidArgument, "thumbnail image must be png")
	ErrInvalidThumbnailDimensions = New(codes.InvalidArgument, "thumbnail must be 512x512 pixels")
	ErrInvalidThumbnailSize       = New(codes.InvalidArgument, "thumbnail size too big")
)
View Source
var (
	ErrFlavorNameExists             = New(codes.AlreadyExists, "flavor name already exists")
	ErrFlavorVersionExists          = New(codes.AlreadyExists, "flavor version already exists")
	ErrMinecraftVersionNotSupported = New(codes.FailedPrecondition, "minecraft version not found")
	ErrHashMismatch                 = New(codes.FailedPrecondition, "hash does not match")
	ErrFlavorFilesNotUploaded       = New(codes.FailedPrecondition, "flavor files have not been uploaded")
	ErrPreviousFilesNotUploaded     = New(
		codes.FailedPrecondition, "files of the last flavor version have not been uploaded",
	)
	ErrFlavorFilesUploaded    = New(codes.AlreadyExists, "flavor files have already been uploaded")
	ErrChangeSetTarballTooBig = New(codes.InvalidArgument, "tarball size exceeds maximum allowed")
)
View Source
var (
	ErrInvalidInstanceID = New(codes.InvalidArgument, "invalid instance id")
	ErrInstanceNotFound  = New(codes.NotFound, "instance not found")
	ErrNodeKeyMissing    = New(codes.InvalidArgument, "node key is missing")
	ErrNoSlotsAvailable  = New(codes.ResourceExhausted, "no slots available on any node")
)
View Source
var (
	ErrFlavorVersionInvalidBuildStatus = New(codes.FailedPrecondition, "flavor version build state must be COMPLETED")
)

* instance related errors

View Source
var (
	ErrPrivacyPolicyNotAccepted = New(codes.FailedPrecondition, "privacy policy not accepted")
)

* user related errors

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string
	Detail  proto.Message
	Code    codes.Code
}

func InvalidPath

func InvalidPath(violations ...InvalidPathViolation) Error

func New

func New(args ...any) Error

func (Error) Error

func (e Error) Error() string

func (Error) GRPCStatus

func (e Error) GRPCStatus() *status.Status

type InvalidPathViolation

type InvalidPathViolation struct {
	Field string
	Path  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL