apperr

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlreadyDeleted

func AlreadyDeleted(reason, resourceType, name string) *grpcerr.Error

func AlreadyExists

func AlreadyExists(reason, resourceType, name string) *grpcerr.Error

func ConcurrentDelete

func ConcurrentDelete(resourceType, name string) *grpcerr.Error

func ConcurrentUpdate

func ConcurrentUpdate(resourceType, name string) *grpcerr.Error

func Deleted

func Deleted(reason, resourceType, name string) *grpcerr.Error

func EtagMismatch

func EtagMismatch(resourceType, name string) *grpcerr.Error

func ImmutableField

func ImmutableField(field, path string) *grpcerr.Error

ImmutableField reports a mask selecting the immutable field under a changed value. field is the path the violation names, such as "book.colour".

func InvalidField

func InvalidField(reason, field, key, value string, err error) *grpcerr.Error

InvalidField reports one parse error as a violation of the request field.

func InvalidFilter

func InvalidFilter(err error, filter string) *grpcerr.Error

func InvalidOrderBy

func InvalidOrderBy(err error, orderBy string) *grpcerr.Error

func InvalidPageToken

func InvalidPageToken(err error, token string) *grpcerr.Error

func InvalidParent

func InvalidParent(err error, parent string) *grpcerr.Error

func InvalidResourceName

func InvalidResourceName(field string, err error, name string) *grpcerr.Error

InvalidResourceName takes the field, since an update names the resource under a path such as "book.name".

func InvalidRevisionID

func InvalidRevisionID(id string) *grpcerr.Error

func InvalidUpdateMask

func InvalidUpdateMask(err error, mask *fieldmaskpb.FieldMask) *grpcerr.Error

func NotDeleted

func NotDeleted(reason, resourceType, name string) *grpcerr.Error

func NotFound

func NotFound(reason, resourceType, name string) *grpcerr.Error

Types

This section is empty.

Jump to

Keyboard shortcuts

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