exitcode

package
v1.105.3-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Success is used when a heartbeat was sent successfully.
	Success = 0
	// ErrGeneric is used for general errors.
	ErrGeneric = 1
	// ErrAPI is when the WakaTime API returned an error.
	ErrAPI = 102
	// ErrAuth is used when the api key is invalid.
	ErrAuth = 104
	// ErrConfigFileParse is used when the ~/.wakatime.cfg config file could not be parsed.
	ErrConfigFileParse = 103
	// ErrConfigFileRead is used for errors of config read command.
	ErrConfigFileRead = 110
	// ErrConfigFileWrite is used for errors of config write command.
	ErrConfigFileWrite = 111
	// ErrBackoff is used when sending heartbeats postponed because we're currently rate limited.
	ErrBackoff = 112
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Err added in v1.97.1

type Err struct {
	Code int
}

Err represents a type response for exit code errors. A Success response is also wrapped in this type.

func (Err) Error added in v1.97.1

func (e Err) Error() string

Error method to implement error interface.

Jump to

Keyboard shortcuts

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