List of Error Codes

Normal Completion Error Class (0)

E_OK 0 Normal completion

Internal Error Class (5 to 8)

E_SYS -5 System error

An error of unknown cause affecting the system as a whole.

E_NOCOP -6 The specified coprocessor cannot be used

Not used in µT-Kernel. This error code exists to ensure compatibility with T-Kernel.

Unsupported Error Class (9 to 16)

E_NOSPT -9 Unsupported function

When some system call functions are not supported and such a function was specified, error code E_RSATR or E_NOSPT is returned. If E_RSATR does not apply, error code E_NOSPT is returned.

E_RSFN -10 Reserved function code number

This error code is returned when it is attempted to execute a system call specifying a reserved function code (undefined function code), and also when it is attempted to execute an undefined extended SVC handler.

E_RSATR -11 Reserved attribute

This error code is returned when an undefined or unsupported object attribute is specified.

Checking for this error may be omitted if system-dependent optimization is implemented.

Parameter Error Class (17 to 24)

E_PAR -17 Parameter error

Checking for this error may be omitted if system-dependent optimization is implemented.

E_ID -18 Invalid ID number

E_ID is an error that occurs only for objects having an ID number. Error code E_PAR is returned when a static error is detected in the parameter, such as reserved number or out of range for parameters such as interrupt definition numbers.

Call Context Error Class (25 to 32)

E_CTX -25 Context error

This error indicates that the specified system call cannot be issued in the current context (task portion/task-independent portion or handler RUN state).

This error must be issued whenever there is a meaningful context error in issuing a system call, such as calling from a task-independent portion a system call that may put the invoking task in WAIT state. Due to implementation limitations, there may be other system calls that when called from a given context (such as an interrupt handler) will cause this error to be returned.

E_MACV -26 Memory cannot be accessed; memory access privilege error

Error detection is implementation-dependent.

E_OACV -27 Object Access privilege error

The error indicates that an object inaccessible from the context which called the system call is specified was accessed. This error code is returned when a user task tries to manipulate a system object.

System object definition and error detection are implementation-defined.

E_ILUSE -28 System call illegal use

Resource Constraint Error Class (33 to 40)

E_NOMEM -33 Insufficient memory

This error code is returned when there is insufficient memory (no memory) for allocating an object control block space, user stack space, memory pool space, message buffer space, etc.

E_LIMIT -34 System limit exceeded

This error code is returned when it is attempted to create more of an object than the system allows.

Object State Error Class (41 to 48)

E_OBJ -41 Invalid object state

E_NOEXS -42 Object does not exist

E_QOVR -43 Queuing or nesting overflow

Wait Error Class (49 to 56)

E_RLWAI -49 WAIT state released

E_TMOUT -50 Polling failed or timeout

E_DLT -51 The object being waited for was deleted

E_DISWAI -52 Wait released by wait disabled state

Not used in µT-Kernel. This error code exists to ensure compatibility with T-Kernel

Device Error Class (57 to 64)

E_IO -57 IO error

E_NOMDA -58 No media

Status Error Class (65 to 72)

E_BUSY -65 Busy

E_ABORT -66 Processing was aborted

E_RONLY -67 Write protected

Comments

Click here to Post a Comment