The error_handling_m module provides error handling routines bound to a static type, error_handling.
Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred.
The assert routine should be used for internal validity checks only. It is a safety mechanism to ensure that program bugs are found and fixed, with the idea that the code developer uses the file name and line number to inspect the source location where the assertion failure occurred and determine the cause. If you want to ERROR STOP as a result of invalid/improper input parameters, use the abort routine, with a useful error message.
| [in] | condition | (logical) : Logical condition to assert |
| [in] | condition_str | (character) : The condition as a string |
| [in] | line | (integer) : Line number where the assertion is made |
| [in] | file | (character) : Name of file where the assertion is made |
Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred.
The abort routine should be kept for situations where the assert routine is not appropriate.
| [in] | line | (integer) : Line number where the error occurred |
| [in] | file | (character) : Name of file where error occurred |
| [in] | msg | (character) : Error message |