errors

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors contains errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReconcilerErr

type ReconcilerErr struct {
	Event         string
	ConditionType string
	// contains filtered or unexported fields
}

ReconcilerErr defines an error that occurs during reconciliation.

func New

func New(msg string) *ReconcilerErr

New returns a new RenconcilerErr.

func Wrap

func Wrap(err error, msg string) *ReconcilerErr

Wrap wraps an error as a RenconcilerErr.

func (*ReconcilerErr) Cause

func (err *ReconcilerErr) Cause() error

Cause returns the cause of the error.

func (*ReconcilerErr) Error

func (err *ReconcilerErr) Error() string

Error implements the error interface.

func (*ReconcilerErr) StackTrace

func (err *ReconcilerErr) StackTrace() errors.StackTrace

StackTrace implements the stackTracer interface.

func (*ReconcilerErr) Unwrap added in v0.7.0

func (err *ReconcilerErr) Unwrap() error

Unwrap is the same as `Cause()`

func (*ReconcilerErr) WithEvent

func (err *ReconcilerErr) WithEvent(event string) *ReconcilerErr

WithEvent adds event metadata to the ReconcilerErr.

func (*ReconcilerErr) WithSystemCondition

func (err *ReconcilerErr) WithSystemCondition(contype v1beta1.ConditionType) *ReconcilerErr

WithSystemCondition adds condition metadata to the ReconcilerErr.

Jump to

Keyboard shortcuts

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