deckerrors

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAPIErrors

func ExtractAPIErrors(err error) []*kong.APIError

ExtractAPIErrors tries to extract kong.APIErrors from the generic error. It might be used when inspection of the error details is needed, e.g. its status code.

func ExtractCRUDActionErrors added in v3.1.0

func ExtractCRUDActionErrors(err error) []*crud.ActionError

func IsConflictErr

func IsConflictErr(err error) bool

Types

type ConfigConflictError

type ConfigConflictError struct {
	Err error
}

ConfigConflictError is an error used to wrap deck config conflict errors returned from deck functions transforming KongRawState to KongState (e.g. state.Get, dump.Get).

func (ConfigConflictError) Error

func (e ConfigConflictError) Error() string

func (ConfigConflictError) Is

func (e ConfigConflictError) Is(err error) bool

func (ConfigConflictError) Unwrap

func (e ConfigConflictError) Unwrap() error

Jump to

Keyboard shortcuts

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