EtcPal
HEAD (unstable)
ETC Platform Abstraction Layer (EtcPal)
|
View other versions:
|
Platform-neutral error codes.
Provides a set of error codes that can be returned by library functions. For platform abstraction modules, error codes are translated from their platform-specific counterparts. Use etcpal_strerror() to get a string representation of any error code.
Macros | |
#define | ETCPAL_NUM_ERROR_CODES 31 |
The total number of error codes currently defined. | |
Enumerations | |
enum | etcpal_error_t { kEtcPalErrOk = 0 , kEtcPalErrNotFound = -1 , kEtcPalErrNoMem = -2 , kEtcPalErrBusy = -3 , kEtcPalErrExists = -4 , kEtcPalErrInvalid = -5 , kEtcPalErrWouldBlock = -6 , kEtcPalErrNoData = -7 , kEtcPalErrProtocol = -8 , kEtcPalErrMsgSize = -9 , kEtcPalErrAddrInUse = -10 , kEtcPalErrAddrNotAvail = -11 , kEtcPalErrNetwork = -12 , kEtcPalErrConnReset = -13 , kEtcPalErrConnClosed = -14 , kEtcPalErrIsConn = -15 , kEtcPalErrNotConn = -16 , kEtcPalErrShutdown = -17 , kEtcPalErrTimedOut = -18 , kEtcPalErrHostUnreach = -19 , kEtcPalErrConnAborted = -20 , kEtcPalErrConnRefused = -21 , kEtcPalErrAlready = -22 , kEtcPalErrInProgress = -23 , kEtcPalErrBufSize = -24 , kEtcPalErrNotInit = -25 , kEtcPalErrNoNetints = -26 , kEtcPalErrNoSockets = -27 , kEtcPalErrNotImpl = -28 , kEtcPalErrPerm = -29 , kEtcPalErrSys = -30 } |
A set of error codes that can be returned by library functions. More... | |
Functions | |
const char * | etcpal_strerror (etcpal_error_t code) |
Get a string representation of an error code. More... | |
enum etcpal_error_t |
A set of error codes that can be returned by library functions.
const char* etcpal_strerror | ( | etcpal_error_t | code | ) |
Get a string representation of an error code.
code | EtcPal error code. |