errors

package
v0.0.0-...-14884cb Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// error is not clear
	ReasonUnknown = ""

	// timeout error
	ReasonTimeout = "Timeout"

	// unable to create the resource
	ReasonNotCreated = "NotCreated"

	// resource could not be rendered error
	ReasonNotRendered = "NotRendered"

	// resource could not be found
	ReasonNotFound = "NotFound"

	// request is of wrong or unexpected type
	ReasonWrongType = "WrongType"
)

Variables

This section is empty.

Functions

func IsNotCreated

func IsNotCreated(err error) bool

IsNotCreated determines if the error indicates that the resource was not created

func IsNotFound

func IsNotFound(err error) bool

IsNotFound determines if the error indicates that the resource was not found

func IsNotRendered

func IsNotRendered(err error) bool

IsNotRendered determines if the error indicates that the resource was not rendered

func IsTimeout

func IsTimeout(err error) bool

IsTimeout determines if the error indicates a timeout

func IsWrongType

func IsWrongType(err error) bool

IsWrongType determines if the error indicates that the resource request was of a wrong or unexpected type

func NewNotCreatedError

func NewNotCreatedError(message string) error

NewNotCreatedError returns an error indicating that a resource could not be created

func NewNotFoundError

func NewNotFoundError(message string) error

NewNotFoundError returns an error indicating that a resource could not be found

func NewNotRenderedError

func NewNotRenderedError(message string) error

NewNotCreatedError returns an error indicating that a resource could not be created

func NewTimeoutError

func NewTimeoutError(message string) error

NewTimeoutError returns an error indicating that a resource occurred during execution of a testrun.

func NewWrongTypeError

func NewWrongTypeError(message string) error

NewWrongTypeError returns an error indicating that a request was of a wrong or unexpected type

Types

type CommonReason

type CommonReason string

error reasons

Jump to

Keyboard shortcuts

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