errors

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")

	// ErrUnauthorized marks a git provider rejecting the token stored for the GitServer (401/403).
	ErrUnauthorized = errors.New("unauthorized")

	// ErrUnsupportedOperation marks an operation the git server's provider does not implement.
	ErrUnsupportedOperation = errors.New("unsupported operation")
)

Predefined errors

Functions

func UnsupportedOperation added in v0.8.0

func UnsupportedOperation(gitProvider, operation string) error

UnsupportedOperation returns an error matching ErrUnsupportedOperation that names the git provider and the OpenAPI operationId.

Types

type InvalidParamError added in v0.7.0

type InvalidParamError struct {
	Param string
	Err   error
}

InvalidParamError reports a request parameter the server cannot use. Param is the parameter name from the OpenAPI spec; Err is the cause and must not be nil.

func (*InvalidParamError) Error added in v0.7.0

func (e *InvalidParamError) Error() string

Error implements the error interface.

func (*InvalidParamError) Unwrap added in v0.7.0

func (e *InvalidParamError) Unwrap() error

Unwrap returns the cause.

Jump to

Keyboard shortcuts

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