Error handling¶
Warning
doxygenfunction: Unable to resolve multiple matches for function “GSM_ErrorString” with arguments () in doxygen xml output for project “project0” from directory: /home/abuild/rpmbuild/BUILD/gammu-1.36.5/build/gammu-doc/xml. Potential matches:
- const char * GSM_ErrorString(GSM_Error)
Warning
doxygenfunction: Unable to resolve multiple matches for function “GSM_ErrorName” with arguments () in doxygen xml output for project “project0” from directory: /home/abuild/rpmbuild/BUILD/gammu-1.36.5/build/gammu-doc/xml. Potential matches:
- const char * GSM_ErrorName(GSM_Error)
- GSM_Error enum
Error types.
Values:
ERR_NONE
= = 1
-No error
ERR_DEVICEOPENERROR
-Error during opening device
ERR_DEVICELOCKED
-Device locked
ERR_DEVICENOTEXIST
-Device does not exits
ERR_DEVICEBUSY
-Device is busy
ERR_DEVICENOPERMISSION
-No permissions to open device
ERR_DEVICENODRIVER
-No driver installed for a device
ERR_DEVICENOTWORK
-Device doesn’t seem to be working
ERR_DEVICEDTRRTSERROR
-Error during setting DTR/RTS in device
ERR_DEVICECHANGESPEEDERROR
-10 Error during changing speed in device
ERR_DEVICEWRITEERROR
-Error during writing device
ERR_DEVICEREADERROR
-Error during reading device
ERR_DEVICEPARITYERROR
-Can’t set parity on device
ERR_TIMEOUT
-Command timed out
ERR_FRAMENOTREQUESTED
-Frame handled, but not requested in this moment
ERR_UNKNOWNRESPONSE
-Response not handled by gammu
ERR_UNKNOWNFRAME
-Frame not handled by gammu
ERR_UNKNOWNCONNECTIONTYPESTRING
-Unknown connection type given by user
ERR_UNKNOWNMODELSTRING
-Unknown model given by user
ERR_SOURCENOTAVAILABLE
-20 Some functions not compiled in your OS
ERR_NOTSUPPORTED
-Not supported by phone
ERR_EMPTY
-Empty entry or transfer end.
ERR_SECURITYERROR
-Not allowed
ERR_INVALIDLOCATION
-Too high or too low location...
ERR_NOTIMPLEMENTED
-Function not implemented
ERR_FULL
-Memory is full
ERR_UNKNOWN
-Unknown response from phone
ERR_CANTOPENFILE
-Error during opening file
ERR_MOREMEMORY
-More memory required
ERR_PERMISSION
-30 No permission
ERR_EMPTYSMSC
-SMSC number is empty
ERR_INSIDEPHONEMENU
-Inside phone menu - can’t make something
ERR_NOTCONNECTED
-Phone NOT connected - can’t make something
ERR_WORKINPROGRESS
-Work in progress
ERR_PHONEOFF
-Phone is disabled and connected to charger
ERR_FILENOTSUPPORTED
-File format not supported by Gammu
ERR_BUG
-Found bug in implementation or phone
ERR_CANCELED
-Action was canceled by user
ERR_NEEDANOTHERANSWER
-Inside Gammu: phone module need to send another answer frame
ERR_OTHERCONNECTIONREQUIRED
-40 You need other connectin for this operation.
ERR_WRONGCRC
-Wrong CRC
ERR_INVALIDDATETIME
-Invalid date/time
ERR_MEMORY
-Phone memory error, maybe it is read only
ERR_INVALIDDATA
-Invalid data given to phone
ERR_FILEALREADYEXIST
-File with specified name already exist
ERR_FILENOTEXIST
-File with specified name doesn’t exist
ERR_SHOULDBEFOLDER
-You have to give folder (not file) name
ERR_SHOULDBEFILE
-You have to give file (not folder) name
ERR_NOSIM
-Can not access SIM card
ERR_GNAPPLETWRONG
-50 Invalid gnapplet version
ERR_FOLDERPART
-Only part of folders listed
ERR_FOLDERNOTEMPTY
-Folder is not empty
ERR_DATACONVERTED
-Data were converted
ERR_UNCONFIGURED
-Gammu is not configured.
ERR_WRONGFOLDER
-Wrong folder selected (eg. for SMS).
ERR_PHONE_INTERNAL
-Internal phone error (phone got crazy).
ERR_WRITING_FILE
-Could not write to a file (on local filesystem).
ERR_NONE_SECTION
-No such section exists.
ERR_USING_DEFAULTS
-Using default values.
ERR_CORRUPTED
-60 Corrupted data returned by phone.
ERR_BADFEATURE
-Bad feature string.
ERR_DISABLED
-Some functions not compiled in your OS
ERR_SPECIFYCHANNEL
-Bluetooth configuration requires channel option.
ERR_NOTRUNNING
-Service is not running.
ERR_NOSERVICE
-Service setup is missing.
ERR_BUSY
-Command failed. Try again.
ERR_COULDNT_CONNECT
-Can not connect to server.
ERR_COULDNT_RESOLVE
-Can not resolve host name.
ERR_GETTING_SMSC
-Failed to get SMSC number from phone.
ERR_ABORTED
-70 Operation aborted.
ERR_INSTALL_NOT_FOUND
-Installation data not found.
ERR_READ_ONLY
-Entry is read only.
ERR_NETWORK_ERROR
-Network error.
ERR_LAST_VALUE
-Just marker of highest error code, should not be used.