Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Socket lwip-sys lwip
Dependents: CellularUSBModem CellularUSBModem
core/errors.h@1:4a23efdf0da9, 2013-10-17 (annotated)
- Committer:
- bogdanm
- Date:
- Thu Oct 17 12:29:05 2013 +0300
- Revision:
- 1:4a23efdf0da9
Initial release of the CellularModem library
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bogdanm | 1:4a23efdf0da9 | 1 | /* errors.h */ |
| bogdanm | 1:4a23efdf0da9 | 2 | /* Copyright (C) 2012 mbed.org, MIT License |
| bogdanm | 1:4a23efdf0da9 | 3 | * |
| bogdanm | 1:4a23efdf0da9 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
| bogdanm | 1:4a23efdf0da9 | 5 | * and associated documentation files (the "Software"), to deal in the Software without restriction, |
| bogdanm | 1:4a23efdf0da9 | 6 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
| bogdanm | 1:4a23efdf0da9 | 7 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
| bogdanm | 1:4a23efdf0da9 | 8 | * furnished to do so, subject to the following conditions: |
| bogdanm | 1:4a23efdf0da9 | 9 | * |
| bogdanm | 1:4a23efdf0da9 | 10 | * The above copyright notice and this permission notice shall be included in all copies or |
| bogdanm | 1:4a23efdf0da9 | 11 | * substantial portions of the Software. |
| bogdanm | 1:4a23efdf0da9 | 12 | * |
| bogdanm | 1:4a23efdf0da9 | 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
| bogdanm | 1:4a23efdf0da9 | 14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| bogdanm | 1:4a23efdf0da9 | 15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
| bogdanm | 1:4a23efdf0da9 | 16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| bogdanm | 1:4a23efdf0da9 | 17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| bogdanm | 1:4a23efdf0da9 | 18 | */ |
| bogdanm | 1:4a23efdf0da9 | 19 | |
| bogdanm | 1:4a23efdf0da9 | 20 | #ifndef ERRORS_H_ |
| bogdanm | 1:4a23efdf0da9 | 21 | #define ERRORS_H_ |
| bogdanm | 1:4a23efdf0da9 | 22 | |
| bogdanm | 1:4a23efdf0da9 | 23 | /** \page Network-related errors */ |
| bogdanm | 1:4a23efdf0da9 | 24 | |
| bogdanm | 1:4a23efdf0da9 | 25 | #define OK 0 //No error |
| bogdanm | 1:4a23efdf0da9 | 26 | |
| bogdanm | 1:4a23efdf0da9 | 27 | #define NET_FULL 1 //>All available resources are already used |
| bogdanm | 1:4a23efdf0da9 | 28 | #define NET_EMPTY 2 //>No resource |
| bogdanm | 1:4a23efdf0da9 | 29 | #define NET_NOTFOUND 3 //>Element cannot be found |
| bogdanm | 1:4a23efdf0da9 | 30 | #define NET_INVALID 4 //>Invalid |
| bogdanm | 1:4a23efdf0da9 | 31 | #define NET_CONTEXT 5 //>Called in a wrong context (eg during an interrupt) |
| bogdanm | 1:4a23efdf0da9 | 32 | #define NET_TIMEOUT 6 //>Timeout |
| bogdanm | 1:4a23efdf0da9 | 33 | #define NET_UNKNOWN 7 //>Unknown error |
| bogdanm | 1:4a23efdf0da9 | 34 | #define NET_OVERFLOW 8 //>Overflow |
| bogdanm | 1:4a23efdf0da9 | 35 | #define NET_PROCESSING 9 //>Command is processing |
| bogdanm | 1:4a23efdf0da9 | 36 | #define NET_INTERRUPTED 10 //>Current operation has been interrupted |
| bogdanm | 1:4a23efdf0da9 | 37 | #define NET_MOREINFO 11 //>More info on this error can be retrieved elsewhere (eg in a parameter passed as ptr) |
| bogdanm | 1:4a23efdf0da9 | 38 | #define NET_ABORT 12 //>Current operation must be aborted |
| bogdanm | 1:4a23efdf0da9 | 39 | #define NET_DIFF 13 //>Items that should match are different |
| bogdanm | 1:4a23efdf0da9 | 40 | #define NET_AUTH 14 //>Authentication failed |
| bogdanm | 1:4a23efdf0da9 | 41 | #define NET_PROTOCOL 15 //>Protocol error |
| bogdanm | 1:4a23efdf0da9 | 42 | #define NET_OOM 16 //>Out of memory |
| bogdanm | 1:4a23efdf0da9 | 43 | #define NET_CONN 17 //>Connection error |
| bogdanm | 1:4a23efdf0da9 | 44 | #define NET_CLOSED 18 //>Connection was closed by remote end |
| bogdanm | 1:4a23efdf0da9 | 45 | #define NET_TOOSMALL 19 //>Buffer is too small |
| bogdanm | 1:4a23efdf0da9 | 46 | |
| bogdanm | 1:4a23efdf0da9 | 47 | #endif /* ERRORS_H_ */ |
