errs

package
v0.0.0-...-036eace Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyExists = errors.New("Already exists")

ErrAlreadyExists describes an error when a resource already exists

View Source
var ErrInvalidInstanceType = errors.New("Invalid instance type")

ErrInvalidInstanceType describes the error when an invalid instance type was used

View Source
var ErrNoSuchObject = errors.New("Not found")

ErrNoSuchObject describes the error when a resource does not exists

Functions

This section is empty.

Types

type ErrNotFound

type ErrNotFound struct {
	// contains filtered or unexported fields
}

ErrNotFound error struct for a not existing resource

func NewNotFound

func NewNotFound(what string) ErrNotFound

NewNotFound returns a new ErrNotFound struct

func (ErrNotFound) Error

func (e ErrNotFound) Error() string

Error returns the error string

Jump to

Keyboard shortcuts

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