Training
×

13. Error and Exception Handling

In INtime there are tree types of exceptions, each with their own way of resolution:
- Programming and Environmental Exceptions
- Numeric Exceptions (including Floating Point exceptions)
  • Hardware Faults
Recommended exception trap mechanisms: SEH (for C) and C++ style (for C++)
 
Exceptions may be handled inline – i.e., by checking for the result of every kernel call, both for high-level and low-level objects.
You also may use SEH (Structured Exception Handling as defined by Microsoft and familiar to many developers) or the C++ style try/catch structure. SEH got enabled in INtime 4 and – starting with INtime 6 – also is enabled for numeric exceptions. SEH is the recommended method for new applications.
 
The INtime for Windows configuration also can watch for Windows terminating – either by a Windows STOP Exception (also known as blue screen) or a Windows shutdown - allowing real-time activities running in INtime to continue or orderly terminate.
 
Finally, INtime has a configurable function “Fault Handler” that continuously monitors the system, reports faults and allows autonomous or interactive reaction on and diagnosis of faults.