errors

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Defines the error messages used within KozmoAdmin categorized by common error codes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDoesNotExistError

func IsDoesNotExistError(err error) bool

Types

type KozmoAdminError

type KozmoAdminError interface {
	Error() string
	Code() codes.Code
	GRPCStatus() *status.Status
	WithDetails(details proto.Message) (KozmoAdminError, error)
	String() string
}

func NewAlreadyInTerminalStateError

func NewAlreadyInTerminalStateError(ctx context.Context, errorMsg string, curPhase string) KozmoAdminError

func NewCollectedKozmoAdminError

func NewCollectedKozmoAdminError(code codes.Code, errors []error) KozmoAdminError

func NewIncompatibleClusterError

func NewIncompatibleClusterError(ctx context.Context, errorMsg, curCluster string) KozmoAdminError

func NewKozmoAdminError

func NewKozmoAdminError(code codes.Code, message string) KozmoAdminError

func NewKozmoAdminErrorFromStatus

func NewKozmoAdminErrorFromStatus(status *status.Status) KozmoAdminError

func NewKozmoAdminErrorf

func NewKozmoAdminErrorf(code codes.Code, format string, a ...interface{}) KozmoAdminError

func NewWorkflowExistsDifferentStructureError

func NewWorkflowExistsDifferentStructureError(ctx context.Context, request *admin.WorkflowCreateRequest) KozmoAdminError

func NewWorkflowExistsIdenticalStructureError

func NewWorkflowExistsIdenticalStructureError(ctx context.Context, request *admin.WorkflowCreateRequest) KozmoAdminError

Jump to

Keyboard shortcuts

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