LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches

Well-defined error and success codes used by LibJuno. More...

Collaboration diagram for Status codes:

Macros

#define JUNO_STATUS_SUCCESS   0
 Operation completed successfully.
 
#define JUNO_STATUS_ERR   1
 Unspecified error.
 
#define JUNO_STATUS_NULLPTR_ERROR   2
 A required pointer argument was NULL or invalid.
 
#define JUNO_STATUS_MEMALLOC_ERROR   3
 Memory allocation failed (hosted or platform-specific allocator).
 
#define JUNO_STATUS_MEMFREE_ERROR   4
 Memory free operation failed or was invalid.
 
#define JUNO_STATUS_INVALID_TYPE_ERROR   5
 Provided type or trait did not match the expected one.
 
#define JUNO_STATUS_INVALID_SIZE_ERROR   6
 Provided size or alignment was invalid or unsupported.
 
#define JUNO_STATUS_TABLE_FULL_ERROR   7
 A fixed-capacity table/structure was full.
 
#define JUNO_STATUS_DNE_ERROR   8
 Requested element or key did not exist.
 
#define JUNO_STATUS_FILE_ERROR   9
 Generic file I/O error on hosted platforms.
 
#define JUNO_STATUS_READ_ERROR   10
 Read operation failed or returned less than requested.
 
#define JUNO_STATUS_WRITE_ERROR   11
 Write operation failed or returned less than requested.
 
#define JUNO_STATUS_CRC_ERROR   12
 CRC check failed or a CRC value was invalid.
 
#define JUNO_STATUS_INVALID_REF_ERROR   13
 A reference identifier or handle was invalid.
 
#define JUNO_STATUS_REF_IN_USE_ERROR   14
 Resource cannot be freed while references are still active.
 
#define JUNO_STATUS_INVALID_DATA_ERROR   15
 Input data failed validation.
 
#define JUNO_STATUS_TIMEOUT_ERROR   16
 Operation timed out.
 
#define JUNO_STATUS_OOB_ERROR   17
 Index or pointer was out of bounds.
 

Detailed Description

Well-defined error and success codes used by LibJuno.

Macro Definition Documentation

◆ JUNO_STATUS_CRC_ERROR

#define JUNO_STATUS_CRC_ERROR   12

CRC check failed or a CRC value was invalid.

◆ JUNO_STATUS_DNE_ERROR

#define JUNO_STATUS_DNE_ERROR   8

Requested element or key did not exist.

◆ JUNO_STATUS_ERR

#define JUNO_STATUS_ERR   1

Unspecified error.

◆ JUNO_STATUS_FILE_ERROR

#define JUNO_STATUS_FILE_ERROR   9

Generic file I/O error on hosted platforms.

◆ JUNO_STATUS_INVALID_DATA_ERROR

#define JUNO_STATUS_INVALID_DATA_ERROR   15

Input data failed validation.

◆ JUNO_STATUS_INVALID_REF_ERROR

#define JUNO_STATUS_INVALID_REF_ERROR   13

A reference identifier or handle was invalid.

◆ JUNO_STATUS_INVALID_SIZE_ERROR

#define JUNO_STATUS_INVALID_SIZE_ERROR   6

Provided size or alignment was invalid or unsupported.

◆ JUNO_STATUS_INVALID_TYPE_ERROR

#define JUNO_STATUS_INVALID_TYPE_ERROR   5

Provided type or trait did not match the expected one.

◆ JUNO_STATUS_MEMALLOC_ERROR

#define JUNO_STATUS_MEMALLOC_ERROR   3

Memory allocation failed (hosted or platform-specific allocator).

◆ JUNO_STATUS_MEMFREE_ERROR

#define JUNO_STATUS_MEMFREE_ERROR   4

Memory free operation failed or was invalid.

◆ JUNO_STATUS_NULLPTR_ERROR

#define JUNO_STATUS_NULLPTR_ERROR   2

A required pointer argument was NULL or invalid.

◆ JUNO_STATUS_OOB_ERROR

#define JUNO_STATUS_OOB_ERROR   17

Index or pointer was out of bounds.

◆ JUNO_STATUS_READ_ERROR

#define JUNO_STATUS_READ_ERROR   10

Read operation failed or returned less than requested.

◆ JUNO_STATUS_REF_IN_USE_ERROR

#define JUNO_STATUS_REF_IN_USE_ERROR   14

Resource cannot be freed while references are still active.

◆ JUNO_STATUS_SUCCESS

#define JUNO_STATUS_SUCCESS   0

Operation completed successfully.

◆ JUNO_STATUS_TABLE_FULL_ERROR

#define JUNO_STATUS_TABLE_FULL_ERROR   7

A fixed-capacity table/structure was full.

◆ JUNO_STATUS_TIMEOUT_ERROR

#define JUNO_STATUS_TIMEOUT_ERROR   16

Operation timed out.

◆ JUNO_STATUS_WRITE_ERROR

#define JUNO_STATUS_WRITE_ERROR   11

Write operation failed or returned less than requested.