errors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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 string
const (
	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"
	RemoteChildWorkflowExecutionFailed ErrorCode = "RemoteChildWorkflowExecutionFailed"
	NoBranchTakenError                 ErrorCode = "NoBranchTakenError"
	OutputsNotFoundError               ErrorCode = "OutputsNotFoundError"
	StorageError                       ErrorCode = "StorageError"
	EventRecordingFailed               ErrorCode = "EventRecordingFailed"
	CatalogCallFailed                  ErrorCode = "CatalogCallFailed"
)

func GetErrorCode

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

func (ErrorCode) String

func (e ErrorCode) String() string

type ErrorMessage

type ErrorMessage = string

type NodeError

type NodeError struct {
	errors.StackTrace
	Code    ErrorCode
	Message ErrorMessage
	Node    v1alpha1.NodeID
}

func (*NodeError) Error

func (n *NodeError) Error() string

type NodeErrorWithCause

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

func (*NodeErrorWithCause) Cause

func (n *NodeErrorWithCause) Cause() error

func (*NodeErrorWithCause) Error

func (n *NodeErrorWithCause) Error() string

Jump to

Keyboard shortcuts

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