gammu.exception – Gammu exception handling

exception gammu.GSMError

Generic class as parent for all Gammu exceptions. This is never raised directly, but should be used to catch any Gammu related exception.

exception gammu.ERR_NONE

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_NONE. Verbose error description: No error.

exception gammu.ERR_DEVICEOPENERROR

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICEOPENERROR. Verbose error description: Error opening device. Unknown, busy or no permissions.

exception gammu.ERR_DEVICELOCKED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICELOCKED. Verbose error description: Error opening device, it is locked.

exception gammu.ERR_DEVICENOTEXIST

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICENOTEXIST. Verbose error description: Error opening device, it doesn’t exist.

exception gammu.ERR_DEVICEBUSY

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICEBUSY. Verbose error description: Error opening device, it is already opened by other application.

exception gammu.ERR_DEVICENOPERMISSION

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICENOPERMISSION. Verbose error description: Error opening device, you don’t have permissions.

exception gammu.ERR_DEVICENODRIVER

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICENODRIVER. Verbose error description: Error opening device. No required driver in operating system.

exception gammu.ERR_DEVICENOTWORK

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICENOTWORK. Verbose error description: Error opening device. Some hardware not connected/wrongly configured.

exception gammu.ERR_DEVICEDTRRTSERROR

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICEDTRRTSERROR. Verbose error description: Error setting device DTR or RTS.

exception gammu.ERR_DEVICECHANGESPEEDERROR

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICECHANGESPEEDERROR. Verbose error description: Error setting device speed. Maybe speed not supported.

exception gammu.ERR_DEVICEWRITEERROR

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICEWRITEERROR. Verbose error description: Error writing to the device.

exception gammu.ERR_DEVICEREADERROR

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICEREADERROR. Verbose error description: Error during reading from the device.

exception gammu.ERR_DEVICEPARITYERROR

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DEVICEPARITYERROR. Verbose error description: Can’t set parity on the device.

exception gammu.ERR_TIMEOUT

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_TIMEOUT. Verbose error description: No response in specified timeout. Probably phone not connected.

exception gammu.ERR_FRAMENOTREQUESTED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_FRAMENOTREQUESTED. Verbose error description: Frame not requested right now. See <http://wammu.eu/support/bugs/> for information how to report it.

exception gammu.ERR_UNKNOWNRESPONSE

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_UNKNOWNRESPONSE. Verbose error description: Unknown response from phone. See <http://wammu.eu/support/bugs/> for information how to report it.

exception gammu.ERR_UNKNOWNFRAME

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_UNKNOWNFRAME. Verbose error description: Unknown frame. See <http://wammu.eu/support/bugs/> for information how to report it.

exception gammu.ERR_UNKNOWNCONNECTIONTYPESTRING

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_UNKNOWNCONNECTIONTYPESTRING. Verbose error description: Unknown connection type string. Check config file.

exception gammu.ERR_UNKNOWNMODELSTRING

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_UNKNOWNMODELSTRING. Verbose error description: Unknown model type string. Check config file.

exception gammu.ERR_SOURCENOTAVAILABLE

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_SOURCENOTAVAILABLE. Verbose error description: Some functions not available for your system (disabled in config or not implemented).

exception gammu.ERR_NOTSUPPORTED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_NOTSUPPORTED. Verbose error description: Function not supported by phone.

exception gammu.ERR_EMPTY

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_EMPTY. Verbose error description: Entry is empty.

exception gammu.ERR_SECURITYERROR

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_SECURITYERROR. Verbose error description: Security error. Maybe no PIN?

exception gammu.ERR_INVALIDLOCATION

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_INVALIDLOCATION. Verbose error description: Invalid location. Maybe too high?

exception gammu.ERR_NOTIMPLEMENTED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_NOTIMPLEMENTED. Verbose error description: Functionality not implemented. You are welcome to help authors with it.

exception gammu.ERR_FULL

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_FULL. Verbose error description: Memory full.

exception gammu.ERR_UNKNOWN

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_UNKNOWN. Verbose error description: Unknown error.

exception gammu.ERR_CANTOPENFILE

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_CANTOPENFILE. Verbose error description: Can not open specified file.

exception gammu.ERR_MOREMEMORY

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_MOREMEMORY. Verbose error description: More memory required...

exception gammu.ERR_PERMISSION

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_PERMISSION. Verbose error description: Operation not allowed by phone.

exception gammu.ERR_EMPTYSMSC

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_EMPTYSMSC. Verbose error description: No SMSC number given. Provide it manually or use the one configured in phone.

exception gammu.ERR_INSIDEPHONEMENU

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_INSIDEPHONEMENU. Verbose error description: You’re inside phone menu (maybe editing?). Leave it and try again.

exception gammu.ERR_NOTCONNECTED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_NOTCONNECTED. Verbose error description: Phone is not connected.

exception gammu.ERR_WORKINPROGRESS

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_WORKINPROGRESS. Verbose error description: Function is currently being implemented. If you want to help, please contact authors.

exception gammu.ERR_PHONEOFF

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_PHONEOFF. Verbose error description: Phone is disabled and connected to charger.

exception gammu.ERR_FILENOTSUPPORTED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_FILENOTSUPPORTED. Verbose error description: File format not supported by Gammu.

exception gammu.ERR_BUG

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_BUG. Verbose error description: Nobody is perfect, some bug appeared in protocol implementation. Please contact authors.

exception gammu.ERR_CANCELED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_CANCELED. Verbose error description: Transfer was canceled by phone, maybe you pressed cancel on phone.

exception gammu.ERR_NEEDANOTHERANSWER

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_NEEDANOTHERANSWER. Verbose error description: Phone module need to send another answer frame.

exception gammu.ERR_OTHERCONNECTIONREQUIRED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_OTHERCONNECTIONREQUIRED. Verbose error description: Current connection type doesn’t support called function.

exception gammu.ERR_WRONGCRC

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_WRONGCRC. Verbose error description: CRC error.

exception gammu.ERR_INVALIDDATETIME

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_INVALIDDATETIME. Verbose error description: Invalid date or time specified.

exception gammu.ERR_MEMORY

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_MEMORY. Verbose error description: Phone memory error, maybe it is read only.

exception gammu.ERR_INVALIDDATA

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_INVALIDDATA. Verbose error description: Invalid data given to phone.

exception gammu.ERR_FILEALREADYEXIST

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_FILEALREADYEXIST. Verbose error description: File with specified name already exists.

exception gammu.ERR_FILENOTEXIST

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_FILENOTEXIST. Verbose error description: File with specified name doesn’t exist.

exception gammu.ERR_SHOULDBEFOLDER

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_SHOULDBEFOLDER. Verbose error description: You have to give folder name and not file name.

exception gammu.ERR_SHOULDBEFILE

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_SHOULDBEFILE. Verbose error description: You have to give file name and not folder name.

exception gammu.ERR_NOSIM

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_NOSIM. Verbose error description: Can not access SIM card.

exception gammu.ERR_GNAPPLETWRONG

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_GNAPPLETWRONG. Verbose error description: Wrong GNAPPLET version in phone. Use version from currently used Gammu.

exception gammu.ERR_FOLDERPART

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_FOLDERPART. Verbose error description: Only part of folder has been listed.

exception gammu.ERR_FOLDERNOTEMPTY

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_FOLDERNOTEMPTY. Verbose error description: Folder must be empty.

exception gammu.ERR_DATACONVERTED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DATACONVERTED. Verbose error description: Data were converted.

exception gammu.ERR_UNCONFIGURED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_UNCONFIGURED. Verbose error description: Gammu is not configured.

exception gammu.ERR_WRONGFOLDER

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_WRONGFOLDER. Verbose error description: Wrong folder used.

exception gammu.ERR_PHONE_INTERNAL

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_PHONE_INTERNAL. Verbose error description: Internal phone error.

exception gammu.ERR_WRITING_FILE

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_WRITING_FILE. Verbose error description: Error writing file to disk.

exception gammu.ERR_NONE_SECTION

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_NONE_SECTION. Verbose error description: No such section exists.

exception gammu.ERR_USING_DEFAULTS

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_USING_DEFAULTS. Verbose error description: Using default values.

exception gammu.ERR_CORRUPTED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_CORRUPTED. Verbose error description: Corrupted data returned by phone.

exception gammu.ERR_BADFEATURE

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_BADFEATURE. Verbose error description: Bad feature string in configuration.

exception gammu.ERR_DISABLED

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_DISABLED. Verbose error description: Desired functionality has been disabled on compile time.

exception gammu.ERR_SPECIFYCHANNEL

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_SPECIFYCHANNEL. Verbose error description: Bluetooth configuration requires channel option.

exception gammu.ERR_NOTRUNNING

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_NOTRUNNING. Verbose error description: Service is not running.

exception gammu.ERR_NOSERVICE

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_NOSERVICE. Verbose error description: Service configuration is missing.

exception gammu.ERR_BUSY

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_BUSY. Verbose error description: Command rejected because device was busy. Wait and restart.

exception gammu.ERR_COULDNT_CONNECT

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_COULDNT_CONNECT. Verbose error description: Could not connect to the server.

exception gammu.ERR_COULDNT_RESOLVE

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_COULDNT_RESOLVE. Verbose error description: Could not resolve the host name.

exception gammu.ERR_GETTING_SMSC

Bases: gammu.GSMError

Exception corresponding to gammu error ERR_GETTING_SMSC. Verbose error description: Failed to get SMSC number from phone.

Previous topic

gammu.worker - Asynchronous communication to phone.

Next topic

Objects

This Page

Donate