sterr

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateErrorBadRequest

func CreateErrorBadRequest(msg string, fieldViolations []*errdetails.BadRequest_FieldViolation) (*status.Status, error)

CreateErrorBadRequest creates a BadRequest detailed error status

func CreateErrorPreconditionFailure

func CreateErrorPreconditionFailure(msg string, violations []*errdetails.PreconditionFailure_Violation) (*status.Status, error)

CreateErrorPreconditionFailure creates a PreconditionFailure detailed error status

func CreateErrorResourceInfo

func CreateErrorResourceInfo(code codes.Code, msg string, rscType string, rscName string, owner string, desc string) (*status.Status, error)

CreateErrorResourceInfo creates a ResourceInfo detailed error status

func RegisterMessageTypes

func RegisterMessageTypes()

RegisterMessageTypes registers common and custom types in gob

Types

This section is empty.

Jump to

Keyboard shortcuts

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