ferror 1.4.1
FERROR is a library to assist with error handling in Fortran projects.
|
Defines a type for managing errors and warnings. More...
Public Member Functions | |
procedure, public | get_log_filename => er_get_log_filename |
Gets the name of the error log file. More... | |
procedure, public | set_log_filename => er_set_log_filename |
Sets the name of the error log file. More... | |
procedure, public | report_error => er_report_error |
Reports an error condition to the user. More... | |
procedure, public | report_warning => er_report_warning |
Reports a warning message to the user. More... | |
procedure, public | log_error => er_log_error |
brief Writes an error log file. More... | |
procedure, public | has_error_occurred => er_has_error_occurred |
Tests to see if an error has been encountered. More... | |
procedure, public | reset_error_status => er_reset_error_status |
Resets the error status flag to false, and the current error flag to zero. More... | |
procedure, public | has_warning_occurred => er_has_warning_occurred |
Tests to see if a warning has been encountered. More... | |
procedure, public | reset_warning_status => er_reset_warning_status |
Resets the warning status flag to false, and the current warning flag to zero. More... | |
procedure, public | get_error_flag => er_get_error_flag |
Gets the current error flag. More... | |
procedure, public | get_warning_flag => er_get_warning_flag |
Gets the current warning flag. More... | |
procedure, public | get_exit_on_error => er_get_exit_on_error |
Gets a logical value determining if the application should be terminated when an error is encountered. More... | |
procedure, public | set_exit_on_error => er_set_exit_on_error |
Sets a logical value determining if the application should be terminated when an error is encountered. More... | |
procedure, public | get_suppress_printing => er_get_suppress_printing |
Gets a logical value determining if printing of error and warning messages should be suppressed. More... | |
procedure, public | set_suppress_printing => er_set_suppress_printing |
Sets a logical value determining if printing of error and warning messages should be suppressed. More... | |
procedure, public | get_error_message => er_get_err_msg |
Gets the current error message. More... | |
procedure, public | get_warning_message => er_get_warning_msg |
Gets the current warning message. More... | |
procedure, public | get_error_fcn_name => er_get_err_fcn |
Gets the name of the routine that initiated the error. More... | |
procedure, public | get_warning_fcn_name => er_get_warning_fcn |
Gets the name of the routine that initiated the warning. More... | |
procedure, public | get_clean_up_routine => er_get_err_fcn_ptr |
Gets the routine to call when an error has been logged. More... | |
procedure, public | set_clean_up_routine => er_set_err_fcn_ptr |
Sets the routine to call when an error has been logged. More... | |
Defines a type for managing errors and warnings.
Definition at line 99 of file ferror.f90.
procedure, public ferror::errors::get_clean_up_routine |
Gets the routine to call when an error has been logged.
[in] | this | The errors object. |
[out] | ptr | A pointer to the error_callback routine. |
Definition at line 358 of file ferror.f90.
procedure, public ferror::errors::get_error_fcn_name |
Gets the name of the routine that initiated the error.
[in] | this | The errors object. |
Definition at line 336 of file ferror.f90.
procedure, public ferror::errors::get_error_flag |
Gets the current error flag.
[in] | this | The errors object. |
Definition at line 240 of file ferror.f90.
procedure, public ferror::errors::get_error_message |
Gets the current error message.
[in] | this | The errors object. |
Definition at line 314 of file ferror.f90.
procedure, public ferror::errors::get_exit_on_error |
Gets a logical value determining if the application should be terminated when an error is encountered.
[in] | this | The errors object. |
Definition at line 264 of file ferror.f90.
procedure, public ferror::errors::get_log_filename |
Gets the name of the error log file.
[in] | this | The errors object. |
Definition at line 122 of file ferror.f90.
procedure, public ferror::errors::get_suppress_printing |
Gets a logical value determining if printing of error and warning messages should be suppressed.
[in] | this | The errors object. |
Definition at line 290 of file ferror.f90.
procedure, public ferror::errors::get_warning_fcn_name |
Gets the name of the routine that initiated the warning.
[in] | this | The errors object. |
Definition at line 347 of file ferror.f90.
procedure, public ferror::errors::get_warning_flag |
Gets the current warning flag.
[in] | this | The errors object. |
Definition at line 251 of file ferror.f90.
procedure, public ferror::errors::get_warning_message |
Gets the current warning message.
[in] | this | The errors object. |
Definition at line 325 of file ferror.f90.
procedure, public ferror::errors::has_error_occurred |
Tests to see if an error has been encountered.
[in] | this | The errors object. |
Definition at line 196 of file ferror.f90.
procedure, public ferror::errors::has_warning_occurred |
Tests to see if a warning has been encountered.
[in] | this | The errors object. |
Definition at line 218 of file ferror.f90.
procedure, public ferror::errors::log_error |
brief Writes an error log file.
[in] | this | The errors object. |
[in] | fcn | The name of the function or subroutine in which the error was encountered. |
[in] | msg | The error message. |
[in] | flag | The error flag. |
Definition at line 185 of file ferror.f90.
procedure, public ferror::errors::report_error |
Reports an error condition to the user.
[in,out] | this | The errors object. |
[in] | fcn | The name of the function or subroutine in which the error was encountered. |
[in] | msg | The error message. |
[in] | flag | The error flag. |
[in,out] | obj | An optional unlimited polymorphic object that can be passed to provide information to the clean-up routine. |
Definition at line 153 of file ferror.f90.
procedure, public ferror::errors::report_warning |
Reports a warning message to the user.
[in,out] | this | The errors object. |
[in] | fcn | The name of the function or subroutine from which the warning was issued. |
[in] | msg | The warning message. |
[in] | flag | The warning flag. |
Definition at line 171 of file ferror.f90.
procedure, public ferror::errors::reset_error_status |
Resets the error status flag to false, and the current error flag to zero.
[in,out] | this | The errors object. |
Definition at line 207 of file ferror.f90.
procedure, public ferror::errors::reset_warning_status |
Resets the warning status flag to false, and the current warning flag to zero.
[in,out] | this | The errors object. |
Definition at line 229 of file ferror.f90.
procedure, public ferror::errors::set_clean_up_routine |
Sets the routine to call when an error has been logged.
[in,out] | this | The errors object. |
[in] | ptr | A pointer to the error_callback routine. |
Definition at line 369 of file ferror.f90.
procedure, public ferror::errors::set_exit_on_error |
Sets a logical value determining if the application should be terminated when an error is encountered.
[in,out] | this | The errors object. |
[in] | x | Set to true if the application should be terminated when an error is reported; else, false. |
Definition at line 277 of file ferror.f90.
procedure, public ferror::errors::set_log_filename |
Sets the name of the error log file.
[in,out] | this | The errors object. |
[in] | str | The filename. |
Definition at line 133 of file ferror.f90.
procedure, public ferror::errors::set_suppress_printing |
Sets a logical value determining if printing of error and warning messages should be suppressed.
[in,out] | this | The errors object. |
[in] | x | Set to true if message printing should be suppressed; else, false to allow printing. |
Definition at line 303 of file ferror.f90.