Data Types | |
| type | error_handling_t |
Functions/Subroutines | |
| pure subroutine | error_handling_abort_routine (line, file, msg) |
| Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred. | |
| pure subroutine | error_handling_assert_array_routine (condition, condition_str, line, file) |
| pure subroutine | error_handling_assert_routine (condition, condition_str, line, file) |
| Causes an ERROR STOP, printing an error message, as well as the file name and line number where the error occurred. | |
Variables | |
| type(error_handling_t), parameter, public | error_handling = error_handling_t() |
|
private |
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 |
Definition at line 72 of file error_handling.f90.
Referenced by error_handling_assert_array_routine(), and error_handling_assert_routine().
|
private |
| [in] | condition | (logical(:)) : Array of logical conditions to assert |
| [in] | condition_str | (character) : The conditions as a string |
| [in] | line | (integer) : Line number where the assertion is made |
| [in] | file | (character) : Name of file where the assertion is made |
Definition at line 98 of file error_handling.f90.
References error_handling_abort_routine().
Referenced by error_handling_m::error_handling_t::assert_routine().
|
private |
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 |
Definition at line 124 of file error_handling.f90.
References error_handling_abort_routine().
Referenced by error_handling_m::error_handling_t::assert_routine().
| type(error_handling_t), parameter, public error_handling_m::error_handling = error_handling_t() |
Definition at line 61 of file error_handling.f90.
Referenced by enum_generator_m::assignment(=)::assign_enumerator(), enum_generator_m::is_equal(), and enum_generator_m::not_equal().