libalpm_errors(3)

πŸ“¦
version 7.0.0 Β· 4 versions
, in epel 10, fedora 43, fedora 44

πŸ’… libalpm_errors β€” Error Codes

okay so welcome to the libalpm_errors(3) page bestie, this is part of the Library Functions Manual and it's literally all about the error codes that libalpm hands back to you when things go sideways 🫢

  • Error codes returned by libalpm.

✨ SYNOPSIS ✨

🌸 Enumerations

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 }

that's libalpm's error type πŸ’– periodt.

πŸ¦‹ Functions

  • 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.

πŸ‘‘ Detailed Description πŸ‘‘

Error codes returned by libalpm. that's it, that's the whole vibe πŸ’…


πŸŽ€ Enumeration Type Documentation πŸŽ€

🧚 enum alpm_errno_t

libalpm's error type β€” here's the full roster, no skips, no cap:

Enumerator

  • ALPM_ERR_OK β€” No error. (the iconic zero, the main character, = 0 ✨)
  • ALPM_ERR_MEMORY β€” Failed to allocate memory. 😭
  • ALPM_ERR_SYSTEM β€” A system error occurred.
  • ALPM_ERR_BADPERMS β€” Permmision denied.
  • ALPM_ERR_NOT_A_FILE β€” Should be a file.
  • ALPM_ERR_NOT_A_DIR β€” Should be a directory.
  • ALPM_ERR_WRONG_ARGS β€” Function was called with invalid arguments.
  • ALPM_ERR_DISK_SPACE β€” Insufficient disk space. πŸ’€
  • ALPM_ERR_HANDLE_NULL β€” Handle should be null.
  • ALPM_ERR_HANDLE_NOT_NULL β€” Handle should not be null.
  • ALPM_ERR_HANDLE_LOCK β€” Failed to acquire lock. πŸ”’
  • ALPM_ERR_DB_OPEN β€” Failed to open database.
  • ALPM_ERR_DB_CREATE β€” Failed to create database.
  • ALPM_ERR_DB_NULL β€” Database should not be null.
  • ALPM_ERR_DB_NOT_NULL β€” Database should be null.
  • ALPM_ERR_DB_NOT_FOUND β€” The database could not be found. πŸ™ˆ
  • ALPM_ERR_DB_INVALID β€” Database is invalid.
  • ALPM_ERR_DB_INVALID_SIG β€” Database has an invalid signature.
  • ALPM_ERR_DB_VERSION β€” The localdb is in a newer/older format than libalpm expects.
  • ALPM_ERR_DB_WRITE β€” Failed to write to the database.
  • ALPM_ERR_DB_REMOVE β€” Failed to remove entry from database.
  • ALPM_ERR_SERVER_BAD_URL β€” Server URL is in an invalid format.
  • ALPM_ERR_SERVER_NONE β€” The database has no configured servers.
  • ALPM_ERR_TRANS_NOT_NULL β€” A transaction is already initialized.
  • ALPM_ERR_TRANS_NULL β€” A transaction has not been initialized.
  • ALPM_ERR_TRANS_DUP_TARGET β€” Duplicate target in transaction.
  • ALPM_ERR_TRANS_DUP_FILENAME β€” Duplicate filename in transaction.
  • ALPM_ERR_TRANS_NOT_INITIALIZED β€” A transaction has not been initialized.
  • ALPM_ERR_TRANS_NOT_PREPARED β€” Transaction has not been prepared.
  • ALPM_ERR_TRANS_ABORT β€” Transaction was aborted.
  • ALPM_ERR_TRANS_TYPE β€” Failed to interrupt transaction.
  • ALPM_ERR_TRANS_NOT_LOCKED β€” Tried to commit transaction without locking the database.
  • ALPM_ERR_TRANS_HOOK_FAILED β€” A hook failed to run.
  • ALPM_ERR_PKG_NOT_FOUND β€” Package not found.
  • ALPM_ERR_PKG_IGNORED β€” Package is in ignorepkg.
  • ALPM_ERR_PKG_INVALID β€” Package is invalid.
  • ALPM_ERR_PKG_INVALID_CHECKSUM β€” Package has an invalid checksum.
  • ALPM_ERR_PKG_INVALID_SIG β€” Package has an invalid signature.
  • ALPM_ERR_PKG_MISSING_SIG β€” Package does not have a signature.
  • ALPM_ERR_PKG_OPEN β€” Cannot open the package file.
  • ALPM_ERR_PKG_CANT_REMOVE β€” Failed to remove package files.
  • ALPM_ERR_PKG_INVALID_NAME β€” Package has an invalid name.
  • ALPM_ERR_PKG_INVALID_ARCH β€” Package has an invalid architecture.
  • ALPM_ERR_SIG_MISSING β€” Signatures are missing.
  • ALPM_ERR_SIG_INVALID β€” Signatures are invalid.
  • ALPM_ERR_UNSATISFIED_DEPS β€” Dependencies could not be satisfied.
  • ALPM_ERR_CONFLICTING_DEPS β€” Conflicting dependencies.
  • ALPM_ERR_FILE_CONFLICTS β€” Files conflict.
  • ALPM_ERR_RETRIEVE β€” Download failed. 😭
  • ALPM_ERR_INVALID_REGEX β€” Invalid Regex.
  • ALPM_ERR_LIBARCHIVE β€” Error in libarchive.
  • ALPM_ERR_LIBCURL β€” Error in libcurl.
  • ALPM_ERR_EXTERNAL_DOWNLOAD β€” Error in external download program.
  • ALPM_ERR_GPGME β€” Error in gpgme.
  • ALPM_ERR_MISSING_CAPABILITY_SIGNATURES β€” Missing compile-time features.

πŸ”₯ Function Documentation πŸ”₯

⭐ alpm_errno_t alpm_errno (alpm_handle_t * handle)

Returns the current error code from the handle. like a vibe check but for your handle, iykyk πŸ’…

Parameters

  • handle β€” the context handle

Returns

  • the current error code of the handle

🌈 const char * alpm_strerror (alpm_errno_t err)

Returns the string corresponding to an error number. you give it a number, it gives you the words 🫢

Parameters

  • err β€” the error code to get the string for

Returns

  • the string relating to the given error code

πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for libalpm from the source code. (yes bestie the robots wrote this one, we just gave it the sparkle treatment ✨)


and that's a wrap! this page came from the libalpm manual, page libalpm_errors(3), and if you're wondering about the timestamp, it's dated libalpm β€” go check the source, mwah πŸ’‹ πŸŽ€

πŸ“¦ where this page comes from