libalpm_errors(3) Library Functions Manual libalpm_errors(3)

libalpm_errors - Error Codes


- Error codes returned by libalpm.


enum alpm_errno_t { ALPM_ERR_OK = 0, ALPM_ERR_MEMORY, ALPM_ERR_SYSTEM, ALPM_ERR_BADPERMS, ALPM_ERR_NOT_A_FILE, ALPM_ERR_NOT_A_DIR, ALPM_ERR_WRONG_ARGS, ALPM_ERR_DISK_SPACE, ALPM_ERR_HANDLE_NULL, ALPM_ERR_HANDLE_NOT_NULL, ALPM_ERR_HANDLE_LOCK, ALPM_ERR_DB_OPEN, ALPM_ERR_DB_CREATE, ALPM_ERR_DB_NULL, ALPM_ERR_DB_NOT_NULL, ALPM_ERR_DB_NOT_FOUND, ALPM_ERR_DB_INVALID, ALPM_ERR_DB_INVALID_SIG, ALPM_ERR_DB_VERSION, ALPM_ERR_DB_WRITE, ALPM_ERR_DB_REMOVE, ALPM_ERR_SERVER_BAD_URL, ALPM_ERR_SERVER_NONE, ALPM_ERR_TRANS_NOT_NULL, ALPM_ERR_TRANS_NULL, ALPM_ERR_TRANS_DUP_TARGET, ALPM_ERR_TRANS_DUP_FILENAME, ALPM_ERR_TRANS_NOT_INITIALIZED, ALPM_ERR_TRANS_NOT_PREPARED, ALPM_ERR_TRANS_ABORT, ALPM_ERR_TRANS_TYPE, ALPM_ERR_TRANS_NOT_LOCKED, ALPM_ERR_TRANS_HOOK_FAILED, ALPM_ERR_PKG_NOT_FOUND, ALPM_ERR_PKG_IGNORED, ALPM_ERR_PKG_INVALID, ALPM_ERR_PKG_INVALID_CHECKSUM, ALPM_ERR_PKG_INVALID_SIG, ALPM_ERR_PKG_MISSING_SIG, ALPM_ERR_PKG_OPEN, ALPM_ERR_PKG_CANT_REMOVE, ALPM_ERR_PKG_INVALID_NAME, ALPM_ERR_PKG_INVALID_ARCH, ALPM_ERR_SIG_MISSING, ALPM_ERR_SIG_INVALID, ALPM_ERR_UNSATISFIED_DEPS, ALPM_ERR_CONFLICTING_DEPS, ALPM_ERR_FILE_CONFLICTS, ALPM_ERR_RETRIEVE, ALPM_ERR_INVALID_REGEX, ALPM_ERR_LIBARCHIVE, ALPM_ERR_LIBCURL, ALPM_ERR_EXTERNAL_DOWNLOAD, ALPM_ERR_GPGME, ALPM_ERR_MISSING_CAPABILITY_SIGNATURES }
libalpm's error type


alpm_errno_t alpm_errno (alpm_handle_t *handle)
Returns the current error code from the handle. const char * alpm_strerror (alpm_errno_t err)
Returns the string corresponding to an error number.

Error codes returned by libalpm.

libalpm's error type

Enumerator

No error.
Failed to allocate memory.
A system error occurred.
Permmision denied.
Should be a file.
Should be a directory.
Function was called with invalid arguments.
Insufficient disk space.
Handle should be null.
Handle should not be null.
Failed to acquire lock.
Failed to open database.
Failed to create database.
Database should not be null.
Database should be null.
The database could not be found.
Database is invalid.
Database has an invalid signature.
The localdb is in a newer/older format than libalpm expects.
Failed to write to the database.
Failed to remove entry from database.
Server URL is in an invalid format.
The database has no configured servers.
A transaction is already initialized.
A transaction has not been initialized.
Duplicate target in transaction.
Duplicate filename in transaction.
A transaction has not been initialized.
Transaction has not been prepared.
Transaction was aborted.
Failed to interrupt transaction.
Tried to commit transaction without locking the database.
A hook failed to run.
Package not found.
Package is in ignorepkg.
Package is invalid.
Package has an invalid checksum.
Package has an invalid signature.
Package does not have a signature.
Cannot open the package file.
Failed to remove package files.
Package has an invalid name.
Package has an invalid architecture.
Signatures are missing.
Signatures are invalid.
Dependencies could not be satisfied.
Conflicting dependencies.
Files conflict.
Download failed.
Invalid Regex.
Error in libarchive.
Error in libcurl.
Error in external download program.
Error in gpgme.
Missing compile-time features.

alpm_errno_t alpm_errno (alpm_handle_t * handle)

Returns the current error code from the handle.

Parameters

handle the context handle

Returns

the current error code of the handle

Returns the string corresponding to an error number.

Parameters

err the error code to get the string for

Returns

the string relating to the given error code

Generated automatically by Doxygen for libalpm from the source code.

libalpm