errs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errs defines sentinel errors used across the CLI for error-code mapping. Centralised here to avoid import cycles between the api and ui packages.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoToken: no API token is configured. Caller should run `hardcover setup`.
	ErrNoToken = errors.New("no API token")

	// ErrAuthFailed: the API rejected the bearer token (HTTP 401/403).
	ErrAuthFailed = errors.New("authentication failed")

	// ErrNetError: network-level failure (timeout, connection refused,
	// non-JSON response, 5xx).
	ErrNetError = errors.New("network error")

	// ErrInvalid: bad input or API-side validation error (HTTP 4xx other
	// than 401/403, GraphQL errors[] payload).
	ErrInvalid = errors.New("invalid input")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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