Central registry for error codes
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(enum_stat), | public, | parameter | :: | toml_stat | = | enum_stat() |
Actual enumerator for return states |
Error message produced by TOML-Fortran
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(kind=tfc, len=:), | public, | allocatable | :: | message |
Payload of the error |
||
| integer, | public | :: | stat | = | toml_stat%fatal |
Error code |
Create new error message
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(toml_error), | intent(out), | allocatable | :: | error |
Error report |
|
| character(kind=tfc, len=*), | intent(in) | :: | message |
Message for the error |
||
| integer, | intent(in), | optional | :: | stat |
Status code |