]> git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/net/cellular/CellularModem/core/errors.h
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[tmk_keyboard.git] / tool / mbed / mbed-sdk / libraries / net / cellular / CellularModem / core / errors.h
1 /* errors.h */
2 /* Copyright (C) 2012 mbed.org, MIT License
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions:
9 *
10 * The above copyright notice and this permission notice shall be included in all copies or
11 * substantial portions of the Software.
12 *
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 */
19
20 #ifndef ERRORS_H_
21 #define ERRORS_H_
22
23 /** \page Network-related errors */
24
25 #define OK 0 //No error
26
27 #define NET_FULL 1 //>All available resources are already used
28 #define NET_EMPTY 2 //>No resource
29 #define NET_NOTFOUND 3 //>Element cannot be found
30 #define NET_INVALID 4 //>Invalid
31 #define NET_CONTEXT 5 //>Called in a wrong context (eg during an interrupt)
32 #define NET_TIMEOUT 6 //>Timeout
33 #define NET_UNKNOWN 7 //>Unknown error
34 #define NET_OVERFLOW 8 //>Overflow
35 #define NET_PROCESSING 9 //>Command is processing
36 #define NET_INTERRUPTED 10 //>Current operation has been interrupted
37 #define NET_MOREINFO 11 //>More info on this error can be retrieved elsewhere (eg in a parameter passed as ptr)
38 #define NET_ABORT 12 //>Current operation must be aborted
39 #define NET_DIFF 13 //>Items that should match are different
40 #define NET_AUTH 14 //>Authentication failed
41 #define NET_PROTOCOL 15 //>Protocol error
42 #define NET_OOM 16 //>Out of memory
43 #define NET_CONN 17 //>Connection error
44 #define NET_CLOSED 18 //>Connection was closed by remote end
45 #define NET_TOOSMALL 19 //>Buffer is too small
46
47 #endif /* ERRORS_H_ */
Imprint / Impressum