5 * Error codes definitions.
7 #ifndef __gammu_error_h
8 #define __gammu_error_h
11 * \defgroup Error Error handling
12 * Error handling and manipulation.
25 * Error during opening device
33 * Device does not exits
41 * No permissions to open device
43 ERR_DEVICENOPERMISSION
,
45 * No driver installed for a device
49 * Device doesn't seem to be working
53 * Error during setting DTR/RTS in device
55 ERR_DEVICEDTRRTSERROR
,
59 * Error during changing speed in device
61 ERR_DEVICECHANGESPEEDERROR
,
63 * Error during writing device
67 * Error during reading device
71 * Can't set parity on device
73 ERR_DEVICEPARITYERROR
,
79 * Frame handled, but not requested in this moment
81 ERR_FRAMENOTREQUESTED
,
83 * Response not handled by gammu
87 * Frame not handled by gammu
91 * Unknown connection type given by user
93 ERR_UNKNOWNCONNECTIONTYPESTRING
,
95 * Unknown model given by user
97 ERR_UNKNOWNMODELSTRING
,
101 * Some functions not compiled in your OS
103 ERR_SOURCENOTAVAILABLE
,
105 * Not supported by phone
109 * Empty entry or transfer end.
117 * Too high or too low location...
121 * Function not implemented
129 * Unknown response from phone
133 * Error during opening file
137 * More memory required
147 * SMSC number is empty
151 * Inside phone menu - can't make something
155 * Phone NOT connected - can't make something
163 * Phone is disabled and connected to charger
167 * File format not supported by Gammu
169 ERR_FILENOTSUPPORTED
,
171 * Found bug in implementation or phone
175 * Action was canceled by user
179 * Inside Gammu: phone module need to send another answer frame
181 ERR_NEEDANOTHERANSWER
,
185 * You need other connectin for this operation.
187 ERR_OTHERCONNECTIONREQUIRED
,
197 * Phone memory error, maybe it is read only
201 * Invalid data given to phone
205 * File with specified name already exist
207 ERR_FILEALREADYEXIST
,
209 * File with specified name doesn't exist
213 * You have to give folder (not file) name
217 * You have to give file (not folder) name
221 * Can not access SIM card
227 * Invalid gnapplet version
231 * Only part of folders listed
235 * Folder is not empty
239 * Data were converted
243 * Gammu is not configured.
247 * Wrong folder selected (eg. for SMS).
251 * Internal phone error (phone got crazy).
255 * Could not write to a file (on local filesystem).
259 * No such section exists.
263 * Using default values.
269 * Corrupted data returned by phone.
273 * Bad feature string.
277 * Some functions not compiled in your OS
281 * Bluetooth configuration requires channel option.
285 * Service is not running.
289 * Service setup is missing.
293 * Command failed. Try again.
297 * Can not connect to server.
301 * Can not resolve host name.
305 * Failed to get SMSC number from phone.
315 * Installation data not found.
317 ERR_INSTALL_NOT_FOUND
,
319 * Entry is read only.
324 * Just marker of highest error code, should not be used.
330 * Returns text for error.
332 * \param e Error code.
333 * \return Text (in current locales) describing error
337 const char *GSM_ErrorString(GSM_Error e
);
340 * Returns name for error.
342 * \param e Error code.
343 * \return Text with error name
347 const char *GSM_ErrorName(GSM_Error e
);
350 /* Editor configuration
351 * vim: noexpandtab sw=8 ts=8 sts=8 tw=72: