README


error


Example Summary

This example shows the use of xdc.runtime.Errormodule to both catch and raise errors.

Example Usage

Run the application, it will attempt to incorrectly run certain SYS/BIOS APIs in order to cause errors. These failures are printed the the console as they occur.

Application Design Details

An Error_Block passed to Task_create() checked to see if the create was unsuccessful due to a memory allocation failure. In no Error_Block is passed, then the application will terminate when an error occurs. This is shown in the Memory_alloc() call when the Error_Block passed in is NULL.

The configuration file error.cfg shows how to plug error hook function that will get called as soon as an error occurs rather than program termination.

References