Error handler
Runtime errors in the RXF or OO RTX are handled by
the error
handler RiCErrorHandler_error(). The error handler will catch use of NULL pointers, lack of resources, etc.
The function RiCErrorHandler_error() is implemented
as an endles loop in the source file RiCErrorHandler.c in the directory
<your Rhapsody>\Share\WST_RXF_V5\<your product>\Source and it is usually part of the RXF libraries you link with. Because it sits in a library, that instance of RiCErrorHandler_error() is called unless you provide your own source file RiCErrorHandler.c and link it into your application.
You can modify the error handler in several ways:
- modify the source file
<your Rhapsody>\Share\WST_RXF_V5\<your product>\Source\RiCErrorHandler.c
so your version will be used in any Rhapsody generated application
- copy the source file <your Rhapsody>\Share\WST_RXF_V5\<your product>\Source\RiCErrorHandler.c
to your working directory and add it to your model, so its contents can
be made specific for your model or project
- insert the source file, maintained by Rhapsody, in a package
which you can refer to from your model. This way you can maintain it in
a central place and use it in various projects.
Please refer to the Usage section of the error handler for a detailed list of enumerated constants.
Copyright (c) Willert
Software Tools GmbH. All rights reserved.