errors

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if the error is an Upbound SDK NotFound error, and false otherwise.

Types

type Error

type Error struct {
	Status int     `json:"status"`
	Title  string  `json:"title"`
	Detail *string `json:"detail,omitempty"`
}

Error is an Upbound SDK error response.

func (*Error) Error

func (e *Error) Error() string

Error returns the error message with the underlying error.

func (*Error) IsNotFound

func (e *Error) IsNotFound() bool

IsNotFound returns true if the error type is ErrorTypeNotFound, and false otherwise.

Jump to

Keyboard shortcuts

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