errors

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: CC0-1.0, CC0-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNilSpecification = Code(iota)
	ErrInvalidSpecification
	ErrInvalidPaths
	ErrEmptyManifest
	ErrUnknownFile
	ErrNilTask
	ErrUnknownJob
	ErrNilConfiguration
	ErrNilAddress
	ErrNotInRange
)

The valid error codes

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code uint8

Code represents a common job error.

func (Code) Code

func (c Code) Code() Code

Code returns the error code c.

func (Code) Error

func (c Code) Error() string

Error returns a description of the error with error code c.

func (Code) String

func (c Code) String() string

String returns a description of the error with error code c.

type Error

type Error interface {
	// Code returns the code associated with this error.
	Code() Code
	// Error returns a string description of the error.
	Error() string
}

Error is the interface satisfied by an error with a Code.

Jump to

Keyboard shortcuts

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