errors

package
v0.0.0-...-d4d22cf Latest Latest
Warning

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

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

Documentation

Overview

Package errors exposes libalpm error codes and contextual errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ALPMError

type ALPMError struct {
	Errno Errno
	Msg   string
}

func NewError

func NewError(errno Errno, msg string) *ALPMError

func (*ALPMError) Error

func (e *ALPMError) Error() string

func (*ALPMError) Unwrap

func (e *ALPMError) Unwrap() error

type Errno

type Errno int32
const (
	ErrOK Errno = iota
	ErrMemory
	ErrSystem
	ErrBadPerms
	ErrNotAFile
	ErrNotADir
	ErrWrongArgs
	ErrDiskSpace
	ErrHandleNull
	ErrHandleNotNull
	ErrHandleLock
	ErrDBOpen
	ErrDBCreate
	ErrDBNull
	ErrDBNotNull
	ErrDBNotFound
	ErrDBInvalid
	ErrDBInvalidSig
	ErrDBVersion
	ErrDBWrite
	ErrDBRemove
	ErrServerBadURL
	ErrServerNone
	ErrTransNotNull
	ErrTransNull
	ErrTransDupTarget
	ErrTransDupFilename
	ErrTransNotInitialized
	ErrTransNotPrepared
	ErrTransAbort
	ErrTransType
	ErrTransNotLocked
	ErrTransHookFailed
	ErrPkgNotFound
	ErrPkgIgnored
	ErrPkgInvalid
	ErrPkgInvalidChecksum
	ErrPkgInvalidSig
	ErrPkgMissingSig
	ErrPkgOpen
	ErrPkgCantRemove
	ErrPkgInvalidName
	ErrPkgInvalidArch
	ErrSigMissing
	ErrSigInvalid
	ErrUnsatisfiedDeps
	ErrConflictingDeps
	ErrFileConflicts
	ErrRetrievePrepare
	ErrRetrieve
	ErrInvalidRegex
	ErrLibArchive
	ErrLibCurl
	ErrExternalDownload
	ErrGpgme
	ErrMissingCapabilitySignatures
)

func (Errno) Error

func (e Errno) Error() string

Jump to

Keyboard shortcuts

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