FORTRAN SOFTWARE CATALOG

Repository owner: Tomohiro Degawa (degawa)

errstat

Return and inspect structured error statuses and messages.

Repository · Pinned source (336ee374c82a) · Try in playground · Checked package example

GAMS classifications

About this package

Category
Error handling
License
MIT

Topics: diagnostics, error-handling, fortran, fortran-package-manager, status-codes

Classification scope and review notes

Error status and message handling. A custom reciprocal routine uses catch_error and set_success. The main checks a successful result, zero rejection with an exact code and message, and a subsequent successful call clearing the error. No source edits. The reciprocal is only a driver, not a mathematical procedure supplied by errstat. Optional omitted-status termination and user-defined task/message repositories are not exercised.

Package dependencies

Resolved GitHub repositories used by the verified playground build, combining direct and indirect dependencies. This list does not describe internal module dependencies or native system libraries.

Required by this build

No additional GitHub package dependencies were recorded for this verified build.

Build record verified 2026-10-29.

Used by (0 selected packages)

No other selected build records this repository as a dependency. This is not a measure of usage outside the catalog.

Reviewed procedures

These mappings have pinned source evidence. A checked package example may exercise only some of them; source review is not a numerical benchmark.

catch_error / set_success / error_stat_type / append_message / initialize

Module: errstat

R3

R3: verified

Derivatives / callbacks: not applicable

Error status and message handling. A custom reciprocal routine uses catch_error and set_success. The main checks a successful result, zero rejection with an exact code and message, and a subsequent successful call clearing the error. No source edits. The reciprocal is only a driver, not a mathematical procedure supplied by errstat. Optional omitted-status termination and user-defined task/message repositories are not exercised. The R3 driver checks nine success/failure/recovery calls with exact codes/messages, signed-zero and NaN input rejection, independent copied statuses, appended context and explicit reset. The illustrative safe square-root ratio is supplied by the driver, not errstat.

Pinned source: src/errstat.f90 · src/type/errorStat/errorStat.f90

Author examples/tests: example/error/err_code.f90

Load checked GAMS driver: gams-errstat-recovery-reference