error

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToUDFErr added in v1.2.0

func ToUDFErr(name string, err error) error

ToUDFErr converts gRPC error to UDF Error

Types

type ErrKind

type ErrKind int16

ErrKind represents if the error is retryable

const (
	Retryable    ErrKind = iota // The error is retryable
	NonRetryable                // The error is non-retryable
	Canceled                    // Request canceled
	Unknown                     // Unknown err kind
)

func (ErrKind) String

func (ek ErrKind) String() string

type UDFError

type UDFError struct {
	// contains filtered or unexported fields
}

UDFError is returned to the main numaflow indicates the status of the error

func FromError

func FromError(err error) (udfErr *UDFError, ok bool)

FromError gets error information from the UDFError

func New

func New(kind ErrKind, msg string) *UDFError

func (*UDFError) Error

func (e *UDFError) Error() string

func (*UDFError) ErrorKind

func (e *UDFError) ErrorKind() ErrKind

func (*UDFError) ErrorMessage

func (e *UDFError) ErrorMessage() string

Jump to

Keyboard shortcuts

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