Help us shape the future of Go! Take the 2026 Go Developer Survey

errors

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrActionNotSupported

type ErrActionNotSupported struct {
	ActionName string
	ObjectName string
	Type       string
	Message    string
}

ErrActionNotSupported is an error returned when an action on an object is not supported

func (*ErrActionNotSupported) Error

func (e *ErrActionNotSupported) Error() string

type ErrActionSkipped

type ErrActionSkipped struct {
	// ActionName is the name of the action
	ActionName string
	// Reason is the reaon why the action was skipped
	Reason string
}

ErrActionSkipped is returned when an action is skipped

func (*ErrActionSkipped) Error

func (e *ErrActionSkipped) Error() string

type ErrNotFound

type ErrNotFound struct {
	// UID unique object identifier.
	ID string
	// Type of the object which wasn't found
	Type string
}

ErrNotFound error type for objects not found

func (*ErrNotFound) Error

func (e *ErrNotFound) Error() string

type ErrNotSupported

type ErrNotSupported struct {
	Type      string
	Operation interface{}
}

ErrNotSupported is error type when an operation is not supported on an object

func (*ErrNotSupported) Error

func (e *ErrNotSupported) Error() string

type ErrObjectNotSupported

type ErrObjectNotSupported struct {
	Name string
	Type string
}

ErrObjectNotSupported is an error returned when an object of a type is not supported

func (*ErrObjectNotSupported) Error

func (e *ErrObjectNotSupported) Error() string

Jump to

Keyboard shortcuts

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