Status codes

Common status codes used throughout lwmsg. More...

Enumerations

enum  LWMsgStatus {
  LWMSG_STATUS_SUCCESS,
  LWMSG_STATUS_ERROR,
  LWMSG_STATUS_AGAIN,
  LWMSG_STATUS_MEMORY,
  LWMSG_STATUS_MALFORMED,
  LWMSG_STATUS_EOF,
  LWMSG_STATUS_NOT_FOUND,
  LWMSG_STATUS_UNIMPLEMENTED,
  LWMSG_STATUS_INVALID_PARAMETER,
  LWMSG_STATUS_OVERFLOW,
  LWMSG_STATUS_UNDERFLOW,
  LWMSG_STATUS_SYSTEM,
  LWMSG_STATUS_TIMEOUT,
  LWMSG_STATUS_SECURITY,
  LWMSG_STATUS_CANCELLED,
  LWMSG_STATUS_FILE_NOT_FOUND,
  LWMSG_STATUS_CONNECTION_REFUSED,
  LWMSG_STATUS_INVALID_STATE,
  LWMSG_STATUS_PEER_RESET,
  LWMSG_STATUS_PEER_CLOSE,
  LWMSG_STATUS_PEER_ABORT,
  LWMSG_STATUS_SESSION_LOST,
  LWMSG_STATUS_UNSUPPORTED,
  LWMSG_STATUS_INVALID_HANDLE,
  LWMSG_STATUS_BUSY,
  LWMSG_STATUS_PENDING,
  LWMSG_STATUS_INTERNAL,
  LWMSG_STATUS_RESOURCE_LIMIT,
  LWMSG_STATUS_BUFFER_TOO_SMALL
}
 A status code. More...
 

Detailed Description

lwmsg uses a common set of status codes to indicate errors or exceptional conditions in its functions.

Enumeration Type Documentation

Enumerator
LWMSG_STATUS_SUCCESS 

Success

LWMSG_STATUS_ERROR 

Generic error

LWMSG_STATUS_AGAIN 

Call is retriable

LWMSG_STATUS_MEMORY 

Out of memory

LWMSG_STATUS_MALFORMED 

Malformed data detected

LWMSG_STATUS_EOF 

End of file or stream

LWMSG_STATUS_NOT_FOUND 

Requested item not found

LWMSG_STATUS_UNIMPLEMENTED 

Not yet implemented

LWMSG_STATUS_INVALID_PARAMETER 

Invalid parameter

LWMSG_STATUS_OVERFLOW 

Arithmetic overflow

LWMSG_STATUS_UNDERFLOW 

Arithmetic underflow

LWMSG_STATUS_SYSTEM 

Unexpected system error

LWMSG_STATUS_TIMEOUT 

Operation timed out

LWMSG_STATUS_SECURITY 

Security violation

LWMSG_STATUS_CANCELLED 

Operation canceled

LWMSG_STATUS_FILE_NOT_FOUND 

File not found

LWMSG_STATUS_CONNECTION_REFUSED 

Remote server not listening

LWMSG_STATUS_INVALID_STATE 

The requested operation is undefined in the current state

LWMSG_STATUS_PEER_RESET 

Peer reset association

LWMSG_STATUS_PEER_CLOSE 

Peer closed association

LWMSG_STATUS_PEER_ABORT 

Peer aborted association

LWMSG_STATUS_SESSION_LOST 

Session with peer was lost

LWMSG_STATUS_UNSUPPORTED 

Unsupported operation

LWMSG_STATUS_INVALID_HANDLE 

Invalid handle

LWMSG_STATUS_BUSY 

A conflicting operation is already in progress

LWMSG_STATUS_PENDING 

Operation is pending completion

LWMSG_STATUS_INTERNAL 

Internal error

LWMSG_STATUS_RESOURCE_LIMIT 

System resource limit encountered

LWMSG_STATUS_BUFFER_TOO_SMALL 

Buffer was not large enough