grpcerrors

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonDuplicateInstance  = "DUPLICATE_INSTANCE"
	ReasonFeatureUnsupported = "FEATURE_UNSUPPORTED"
	ReasonInstanceNotFound   = "INSTANCE_NOT_FOUND"
	ReasonInvalidArgument    = "INVALID_ARGUMENT"
	ReasonInvalidState       = "INVALID_STATE"
	ReasonNotCompleted       = "NOT_COMPLETED"
	ReasonTaskHubNotFound    = "TASK_HUB_NOT_FOUND"
)

Variables

This section is empty.

Functions

func New

func New(code codes.Code, message, reason string) error

New returns a gRPC status error with a machine-readable durable error reason.

func Reason

func Reason(value *status.Status) string

Reason returns the durable error reason attached to a gRPC status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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