The following error codes are generated by Lorien's dynamic component model, and used more generally where appropriate. Note that some component interfaces reverse the meaning of 1 and 0 in their return values (usually when a boolean return value is more meaningful).
- Short name: LORIEN_OK
- Numeric value: 0
- Meaning: Function returned nominally.
- Short name: LORIEN_ERROR
- Numeric value: 1
- Meaning: An unclassified error occurred.
- Short name: LORIEN_OUT_OF_MEMORY
- Numeric value: 2
- Meaning: The operation could not be completed due to insufficient remaining memory. May be used to indicate a shortage of RAM, program memory, or any other kind of memory.
- Short name: LORIEN_LIBRARY_LOAD_FAILURE
- Numeric value: 3
- Meaning: When trying to add a component to the running system, loading of its object file into program memory failed. More specific error data is not currently available for this operation; the most common causes are that the named object file does not exist on the mass storage device, or else there was insufficient program memory to load the object file's machine code into.
- Short name: LORIEN_LIBRARY_INCOMPATIBLE
- Numeric value: 4
- Meaning: When trying to add a component to the running system, the specified object file was not considered to be a Lorien component.