.TH "libalpm_errors" 3 "libalpm" \" -*- nroff -*- .ad l .nh .SH NAME libalpm_errors \- Error Codes .PP \- Error codes returned by libalpm\&. .SH SYNOPSIS .br .PP .SS "Enumerations" .in +1c .ti -1c .RI "enum \fBalpm_errno_t\fP { \fBALPM_ERR_OK\fP = 0, \fBALPM_ERR_MEMORY\fP, \fBALPM_ERR_SYSTEM\fP, \fBALPM_ERR_BADPERMS\fP, \fBALPM_ERR_NOT_A_FILE\fP, \fBALPM_ERR_NOT_A_DIR\fP, \fBALPM_ERR_WRONG_ARGS\fP, \fBALPM_ERR_DISK_SPACE\fP, \fBALPM_ERR_HANDLE_NULL\fP, \fBALPM_ERR_HANDLE_NOT_NULL\fP, \fBALPM_ERR_HANDLE_LOCK\fP, \fBALPM_ERR_DB_OPEN\fP, \fBALPM_ERR_DB_CREATE\fP, \fBALPM_ERR_DB_NULL\fP, \fBALPM_ERR_DB_NOT_NULL\fP, \fBALPM_ERR_DB_NOT_FOUND\fP, \fBALPM_ERR_DB_INVALID\fP, \fBALPM_ERR_DB_INVALID_SIG\fP, \fBALPM_ERR_DB_VERSION\fP, \fBALPM_ERR_DB_WRITE\fP, \fBALPM_ERR_DB_REMOVE\fP, \fBALPM_ERR_SERVER_BAD_URL\fP, \fBALPM_ERR_SERVER_NONE\fP, \fBALPM_ERR_TRANS_NOT_NULL\fP, \fBALPM_ERR_TRANS_NULL\fP, \fBALPM_ERR_TRANS_DUP_TARGET\fP, \fBALPM_ERR_TRANS_DUP_FILENAME\fP, \fBALPM_ERR_TRANS_NOT_INITIALIZED\fP, \fBALPM_ERR_TRANS_NOT_PREPARED\fP, \fBALPM_ERR_TRANS_ABORT\fP, \fBALPM_ERR_TRANS_TYPE\fP, \fBALPM_ERR_TRANS_NOT_LOCKED\fP, \fBALPM_ERR_TRANS_HOOK_FAILED\fP, \fBALPM_ERR_PKG_NOT_FOUND\fP, \fBALPM_ERR_PKG_IGNORED\fP, \fBALPM_ERR_PKG_INVALID\fP, \fBALPM_ERR_PKG_INVALID_CHECKSUM\fP, \fBALPM_ERR_PKG_INVALID_SIG\fP, \fBALPM_ERR_PKG_MISSING_SIG\fP, \fBALPM_ERR_PKG_OPEN\fP, \fBALPM_ERR_PKG_CANT_REMOVE\fP, \fBALPM_ERR_PKG_INVALID_NAME\fP, \fBALPM_ERR_PKG_INVALID_ARCH\fP, \fBALPM_ERR_SIG_MISSING\fP, \fBALPM_ERR_SIG_INVALID\fP, \fBALPM_ERR_UNSATISFIED_DEPS\fP, \fBALPM_ERR_CONFLICTING_DEPS\fP, \fBALPM_ERR_FILE_CONFLICTS\fP, \fBALPM_ERR_RETRIEVE\fP, \fBALPM_ERR_INVALID_REGEX\fP, \fBALPM_ERR_LIBARCHIVE\fP, \fBALPM_ERR_LIBCURL\fP, \fBALPM_ERR_EXTERNAL_DOWNLOAD\fP, \fBALPM_ERR_GPGME\fP, \fBALPM_ERR_MISSING_CAPABILITY_SIGNATURES\fP }" .br .RI "libalpm's error type " .in -1c .SS "Functions" .in +1c .ti -1c .RI "\fBalpm_errno_t\fP \fBalpm_errno\fP (\fBalpm_handle_t\fP *handle)" .br .RI "Returns the current error code from the handle\&. " .ti -1c .RI "const char * \fBalpm_strerror\fP (\fBalpm_errno_t\fP err)" .br .RI "Returns the string corresponding to an error number\&. " .in -1c .SH "Detailed Description" .PP Error codes returned by libalpm\&. .SH "Enumeration Type Documentation" .PP .SS "enum \fBalpm_errno_t\fP" .PP libalpm's error type .PP \fBEnumerator\fP .in +1c .TP \f(BIALPM_ERR_OK \fP No error\&. .TP \f(BIALPM_ERR_MEMORY \fP Failed to allocate memory\&. .TP \f(BIALPM_ERR_SYSTEM \fP A system error occurred\&. .TP \f(BIALPM_ERR_BADPERMS \fP Permmision denied\&. .TP \f(BIALPM_ERR_NOT_A_FILE \fP Should be a file\&. .TP \f(BIALPM_ERR_NOT_A_DIR \fP Should be a directory\&. .TP \f(BIALPM_ERR_WRONG_ARGS \fP Function was called with invalid arguments\&. .TP \f(BIALPM_ERR_DISK_SPACE \fP Insufficient disk space\&. .TP \f(BIALPM_ERR_HANDLE_NULL \fP Handle should be null\&. .TP \f(BIALPM_ERR_HANDLE_NOT_NULL \fP Handle should not be null\&. .TP \f(BIALPM_ERR_HANDLE_LOCK \fP Failed to acquire lock\&. .TP \f(BIALPM_ERR_DB_OPEN \fP Failed to open database\&. .TP \f(BIALPM_ERR_DB_CREATE \fP Failed to create database\&. .TP \f(BIALPM_ERR_DB_NULL \fP Database should not be null\&. .TP \f(BIALPM_ERR_DB_NOT_NULL \fP Database should be null\&. .TP \f(BIALPM_ERR_DB_NOT_FOUND \fP The database could not be found\&. .TP \f(BIALPM_ERR_DB_INVALID \fP Database is invalid\&. .TP \f(BIALPM_ERR_DB_INVALID_SIG \fP Database has an invalid signature\&. .TP \f(BIALPM_ERR_DB_VERSION \fP The localdb is in a newer/older format than libalpm expects\&. .TP \f(BIALPM_ERR_DB_WRITE \fP Failed to write to the database\&. .TP \f(BIALPM_ERR_DB_REMOVE \fP Failed to remove entry from database\&. .TP \f(BIALPM_ERR_SERVER_BAD_URL \fP Server URL is in an invalid format\&. .TP \f(BIALPM_ERR_SERVER_NONE \fP The database has no configured servers\&. .TP \f(BIALPM_ERR_TRANS_NOT_NULL \fP A transaction is already initialized\&. .TP \f(BIALPM_ERR_TRANS_NULL \fP A transaction has not been initialized\&. .TP \f(BIALPM_ERR_TRANS_DUP_TARGET \fP Duplicate target in transaction\&. .TP \f(BIALPM_ERR_TRANS_DUP_FILENAME \fP Duplicate filename in transaction\&. .TP \f(BIALPM_ERR_TRANS_NOT_INITIALIZED \fP A transaction has not been initialized\&. .TP \f(BIALPM_ERR_TRANS_NOT_PREPARED \fP Transaction has not been prepared\&. .TP \f(BIALPM_ERR_TRANS_ABORT \fP Transaction was aborted\&. .TP \f(BIALPM_ERR_TRANS_TYPE \fP Failed to interrupt transaction\&. .TP \f(BIALPM_ERR_TRANS_NOT_LOCKED \fP Tried to commit transaction without locking the database\&. .TP \f(BIALPM_ERR_TRANS_HOOK_FAILED \fP A hook failed to run\&. .TP \f(BIALPM_ERR_PKG_NOT_FOUND \fP Package not found\&. .TP \f(BIALPM_ERR_PKG_IGNORED \fP Package is in ignorepkg\&. .TP \f(BIALPM_ERR_PKG_INVALID \fP Package is invalid\&. .TP \f(BIALPM_ERR_PKG_INVALID_CHECKSUM \fP Package has an invalid checksum\&. .TP \f(BIALPM_ERR_PKG_INVALID_SIG \fP Package has an invalid signature\&. .TP \f(BIALPM_ERR_PKG_MISSING_SIG \fP Package does not have a signature\&. .TP \f(BIALPM_ERR_PKG_OPEN \fP Cannot open the package file\&. .TP \f(BIALPM_ERR_PKG_CANT_REMOVE \fP Failed to remove package files\&. .TP \f(BIALPM_ERR_PKG_INVALID_NAME \fP Package has an invalid name\&. .TP \f(BIALPM_ERR_PKG_INVALID_ARCH \fP Package has an invalid architecture\&. .TP \f(BIALPM_ERR_SIG_MISSING \fP Signatures are missing\&. .TP \f(BIALPM_ERR_SIG_INVALID \fP Signatures are invalid\&. .TP \f(BIALPM_ERR_UNSATISFIED_DEPS \fP Dependencies could not be satisfied\&. .TP \f(BIALPM_ERR_CONFLICTING_DEPS \fP Conflicting dependencies\&. .TP \f(BIALPM_ERR_FILE_CONFLICTS \fP Files conflict\&. .TP \f(BIALPM_ERR_RETRIEVE \fP Download failed\&. .TP \f(BIALPM_ERR_INVALID_REGEX \fP Invalid Regex\&. .TP \f(BIALPM_ERR_LIBARCHIVE \fP Error in libarchive\&. .TP \f(BIALPM_ERR_LIBCURL \fP Error in libcurl\&. .TP \f(BIALPM_ERR_EXTERNAL_DOWNLOAD \fP Error in external download program\&. .TP \f(BIALPM_ERR_GPGME \fP Error in gpgme\&. .TP \f(BIALPM_ERR_MISSING_CAPABILITY_SIGNATURES \fP Missing compile-time features\&. .SH "Function Documentation" .PP .SS "\fBalpm_errno_t\fP alpm_errno (\fBalpm_handle_t\fP * handle)" .PP Returns the current error code from the handle\&. .PP \fBParameters\fP .RS 4 \fIhandle\fP the context handle .RE .PP \fBReturns\fP .RS 4 the current error code of the handle .RE .PP .SS "const char * alpm_strerror (\fBalpm_errno_t\fP err)" .PP Returns the string corresponding to an error number\&. .PP \fBParameters\fP .RS 4 \fIerr\fP the error code to get the string for .RE .PP \fBReturns\fP .RS 4 the string relating to the given error code .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libalpm from the source code\&.