error

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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