Back to godoc.org

Package errors

v0.0.0-...-31c71b2
Latest Go to latest

The latest major version is .

Published: Oct 15, 2020 | License: Apache-2.0 | Module: github.com/akgalwas/kyma

Overview

Package errors contains custom error types and error utilities for reconcilers.

Index

func Handle

func Handle(err error, ctx context.Context, msg string) error

Handle inspects the received error and returns either nil or the original error depending on the nature of that error. The context and message are used to produce log entries. Used to ensure a queued item is either requeued or dropped.

func IsSkippable

func IsSkippable(e error) bool

IsSkippable returns whether the given error is skippable.

func NewSkippable

func NewSkippable(e error) error

NewSkippable wraps an error into a skippable type so it gets ignored by the reconciler.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier