errors

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	New = errors.New
	Is  = errors.Is
)
View Source
var (
	ErrorMissingArgument = errors.New("argument requested but not provided")
)
View Source
var ErrorSkipValidation = errors.New("skipping step validation")

ErrorSkipValidation can be returned in the Client's Validate interface to prevent the error from stopping the pipeline execution

Functions

This section is empty.

Types

type ErrorStack

type ErrorStack struct {
	Errors []error
}

func (*ErrorStack) Peek

func (e *ErrorStack) Peek() error

Peek returns the error at the end of the stack without removing it.

func (*ErrorStack) Pop

func (e *ErrorStack) Pop() error

Pop returns the error at the end of the stack and removes it.

func (*ErrorStack) Push

func (e *ErrorStack) Push(err error)

type PipelineError

type PipelineError struct {
	Err         string
	Description string
}

func NewPipelineError

func NewPipelineError(err string, desc string) *PipelineError

func (*PipelineError) Error

func (p *PipelineError) Error() string

Jump to

Keyboard shortcuts

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