errors

package
v1.16.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(c ErrorCode, n v1alpha1.NodeID, msgFmt string, args ...interface{}) error

func Matches

func Matches(err error, code ErrorCode) bool

func Wrapf

func Wrapf(c ErrorCode, n v1alpha1.NodeID, cause error, msgFmt string, args ...interface{}) error

Types

type ErrorCode

type ErrorCode = errors.ErrorCode
const (
	UnknownError                       ErrorCode = "UnknownError"
	InitializationError                ErrorCode = "InitializationError"
	NotYetImplementedError             ErrorCode = "NotYetImplementedError"
	DownstreamNodeNotFoundError        ErrorCode = "DownstreamNodeNotFound"
	UserProvidedError                  ErrorCode = "UserProvidedError"
	IllegalStateError                  ErrorCode = "IllegalStateError"
	BadSpecificationError              ErrorCode = "BadSpecificationError"
	UnsupportedTaskTypeError           ErrorCode = "UnsupportedTaskType"
	BindingResolutionError             ErrorCode = "BindingResolutionError"
	CausedByError                      ErrorCode = "CausedByError"
	RuntimeExecutionError              ErrorCode = "RuntimeExecutionError"
	SubWorkflowExecutionFailed         ErrorCode = "SubWorkflowExecutionFailed"
	SubWorkflowExecutionFailing        ErrorCode = "SubWorkflowExecutionFailing"
	RemoteChildWorkflowExecutionFailed ErrorCode = "RemoteChildWorkflowExecutionFailed"
	NoBranchTakenError                 ErrorCode = "NoBranchTakenError"
	OutputsNotFoundError               ErrorCode = "OutputsNotFoundError"
	InputsNotFoundError                ErrorCode = "InputsNotFoundError"
	StorageError                       ErrorCode = "StorageError"
	EventRecordingFailed               ErrorCode = "EventRecordingFailed"
	CatalogCallFailed                  ErrorCode = "CatalogCallFailed"
	InvalidArrayLength                 ErrorCode = "InvalidArrayLength"
	PromiseAttributeResolveError       ErrorCode = "PromiseAttributeResolveError"
	IDLNotFoundErr                     ErrorCode = "IDLNotFoundErr"
	InvalidPrimitiveType               ErrorCode = "InvalidPrimitiveType"
)

func GetErrorCode

func GetErrorCode(err error) (code ErrorCode, isNodeError bool)

type ErrorCollection

type ErrorCollection struct {
	Errors []error
}

func (ErrorCollection) Error

func (e ErrorCollection) Error() string

type ErrorMessage

type ErrorMessage = string

type NodeError

type NodeError struct {
	ErrCode ErrorCode
	Message ErrorMessage
	Node    v1alpha1.NodeID
}

func (*NodeError) Code

func (n *NodeError) Code() ErrorCode

func (*NodeError) Error

func (n *NodeError) Error() string

func (*NodeError) Is

func (n *NodeError) Is(target error) bool

type NodeErrorWithCause

type NodeErrorWithCause struct {
	NodeError error
	// contains filtered or unexported fields
}

func (*NodeErrorWithCause) Cause

func (n *NodeErrorWithCause) Cause() error

func (*NodeErrorWithCause) Code

func (n *NodeErrorWithCause) Code() ErrorCode

func (*NodeErrorWithCause) Error

func (n *NodeErrorWithCause) Error() string

func (*NodeErrorWithCause) Is

func (n *NodeErrorWithCause) Is(target error) bool

func (*NodeErrorWithCause) Unwrap

func (n *NodeErrorWithCause) Unwrap() error

Jump to

Keyboard shortcuts

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