Central registry for error codes
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(enum_stat), | public, | parameter | :: | mctc_stat | = | enum_stat() |
Actual enumerator for return states |
Error message
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | public, | allocatable | :: | message |
Payload of the error |
||
integer, | public | :: | stat |
Error code |
A fatal error is encountered
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(error_type), | intent(out), | allocatable | :: | error |
Instance of the error |
|
character(len=*), | intent(in), | optional | :: | message |
A detailed message describing the error and (optionally) offering advice |
|
integer, | intent(in), | optional | :: | stat |
Overwrite of the error code |