Error codes, error messages, and utility routines.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | E_NONE | = | 0 |
No error. |
integer, | public, | parameter | :: | E_ERROR | = | 1 |
Generic error. |
integer, | public, | parameter | :: | E_DUMMY | = | 2 |
Dummy error or not implemented. |
integer, | public, | parameter | :: | E_INVALID | = | 3 |
Invalid input/argument. |
integer, | public, | parameter | :: | E_INCOMPLETE | = | 4 |
Input/argument missing. |
integer, | public, | parameter | :: | E_TYPE | = | 5 |
Type error. |
integer, | public, | parameter | :: | E_IO | = | 6 |
I/O operation failed. |
integer, | public, | parameter | :: | E_READ | = | 7 |
Read operation failed. |
integer, | public, | parameter | :: | E_WRITE | = | 8 |
Write operation failed. |
integer, | public, | parameter | :: | E_EOF | = | 9 |
I/O end of file. |
integer, | public, | parameter | :: | E_EOR | = | 10 |
I/O end of record. |
integer, | public, | parameter | :: | E_ALLOC | = | 11 |
Memory allocation failed. |
integer, | public, | parameter | :: | E_BOUNDS | = | 12 |
Out of bounds error. |
integer, | public, | parameter | :: | E_EXIST | = | 13 |
Resource exists. |
integer, | public, | parameter | :: | E_NOT_FOUND | = | 14 |
Resource not found. |
integer, | public, | parameter | :: | E_SYSTEM | = | 15 |
System call failed. |
integer, | public, | parameter | :: | E_MEMORY | = | 16 |
No memory. |
integer, | public, | parameter | :: | E_FULL | = | 17 |
Disk full. |
integer, | public, | parameter | :: | E_EMPTY | = | 18 |
No data. |
integer, | public, | parameter | :: | E_NULL | = | 19 |
Pointer not associated. |
integer, | public, | parameter | :: | E_LIMIT | = | 20 |
Memory limit reached. |
integer, | public, | parameter | :: | E_TIMEOUT | = | 21 |
Timeout occured. |
integer, | public, | parameter | :: | E_FORMAT | = | 22 |
Format error. |
integer, | public, | parameter | :: | E_PERM | = | 23 |
No permission. |
integer, | public, | parameter | :: | E_READ_ONLY | = | 24 |
Read-only access. |
integer, | public, | parameter | :: | E_CORRUPT | = | 25 |
Data corrupted. |
integer, | public, | parameter | :: | E_CONFIG | = | 26 |
Invalid configuration error. |
integer, | public, | parameter | :: | E_GEOCOM | = | 28 |
GeoCOM error. |
integer, | public, | parameter | :: | E_DB | = | 30 |
Generic database error. |
integer, | public, | parameter | :: | E_DB_ID | = | 31 |
Invalid database application id. |
integer, | public, | parameter | :: | E_DB_BUSY | = | 32 |
Database is busy. |
integer, | public, | parameter | :: | E_DB_LOCKED | = | 33 |
Database is locked. |
integer, | public, | parameter | :: | E_DB_EXEC | = | 34 |
Execution failed. |
integer, | public, | parameter | :: | E_DB_CONSTRAINT | = | 35 |
Contraint error. |
integer, | public, | parameter | :: | E_DB_TRANSACTION | = | 36 |
Transaction failed. |
integer, | public, | parameter | :: | E_DB_ROLLBACK | = | 37 |
Transaction rollback error. |
integer, | public, | parameter | :: | E_DB_PREPARE | = | 38 |
Prepare failed. |
integer, | public, | parameter | :: | E_DB_FINALIZE | = | 39 |
Statement error. |
integer, | public, | parameter | :: | E_DB_BIND | = | 40 |
Bind failed. |
integer, | public, | parameter | :: | E_DB_TYPE | = | 41 |
Type mismatch. |
integer, | public, | parameter | :: | E_DB_STEP | = | 42 |
Step failed. |
integer, | public, | parameter | :: | E_DB_NO_ROWS | = | 43 |
No rows returned. |
integer, | public, | parameter | :: | E_DB_BACKUP | = | 44 |
Backup error. |
integer, | public, | parameter | :: | E_DB_ATTACH | = | 45 |
Attach failed. |
integer, | public, | parameter | :: | E_DB_DETACH | = | 46 |
Detach error. |
integer, | public, | parameter | :: | E_DB_VERSION | = | 47 |
Incompatible version. |
integer, | public, | parameter | :: | E_ARG | = | 50 |
Generic argument error. |
integer, | public, | parameter | :: | E_ARG_NOT_FOUND | = | 51 |
Option not passed. |
integer, | public, | parameter | :: | E_ARG_INVALID | = | 52 |
Invalid option or argument missing. |
integer, | public, | parameter | :: | E_ARG_NO_VALUE | = | 53 |
Argument given but no value. |
integer, | public, | parameter | :: | E_ARG_TYPE | = | 54 |
Type mismatch. |
integer, | public, | parameter | :: | E_ARG_LENGTH | = | 55 |
Wrong value length. |
integer, | public, | parameter | :: | E_ARG_UNKNOWN | = | 56 |
Unknown argument passed. |
integer, | public, | parameter | :: | E_MQUEUE | = | 60 |
Generic message queue error. |
integer, | public, | parameter | :: | E_MQUEUE_EMPTY | = | 61 |
Empty message. |
integer, | public, | parameter | :: | E_REGEX | = | 70 |
Generic regular expression error. |
integer, | public, | parameter | :: | E_REGEX_COMPILE | = | 71 |
Failed to compile regular expression. |
integer, | public, | parameter | :: | E_REGEX_EXCEEDED | = | 72 |
Number of matches exceeds array size. |
integer, | public, | parameter | :: | E_REGEX_NO_MATCH | = | 73 |
No match. |
integer, | public, | parameter | :: | E_REGEX_NO_GROUP | = | 74 |
No group. |
integer, | public, | parameter | :: | E_SENSOR | = | 80 |
Generic sensor error. |
integer, | public, | parameter | :: | E_RPC | = | 90 |
Generic RPC error. |
integer, | public, | parameter | :: | E_RPC_CONNECT | = | 91 |
RPC connection error. |
integer, | public, | parameter | :: | E_RPC_SSL | = | 92 |
RPC SSL/TLS error. |
integer, | public, | parameter | :: | E_RPC_API | = | 93 |
RPC API call failed. |
integer, | public, | parameter | :: | E_RPC_AUTH | = | 94 |
Unauthorised. |
integer, | public, | parameter | :: | E_RPC_CONFLICT | = | 95 |
Resource exists. |
integer, | public, | parameter | :: | E_RPC_SERVER | = | 96 |
Internal server error. |
integer, | public, | parameter | :: | E_MAIL | = | 100 |
Generic mail error. |
integer, | public, | parameter | :: | E_MAIL_CONNECT | = | 101 |
Mail connection error. |
integer, | public, | parameter | :: | E_MAIL_SSL | = | 102 |
Mail SSL/TLS error. |
integer, | public, | parameter | :: | E_MAIL_AUTH | = | 103 |
Unauthorised. |
integer, | public, | parameter | :: | E_MQTT | = | 110 |
Generic MQTT error. |
integer, | public, | parameter | :: | E_LUA | = | 120 |
Generic Lua error. |
integer, | public, | parameter | :: | E_LUA_YIELD | = | 121 |
Lua thread (coroutine) yields (not an error). |
integer, | public, | parameter | :: | E_LUA_RUNTIME | = | 122 |
Lua runtime error. |
integer, | public, | parameter | :: | E_LUA_SYNTAX | = | 123 |
Lua syntax error. |
integer, | public, | parameter | :: | E_LUA_MEM | = | 124 |
Lua memory allocation error. |
integer, | public, | parameter | :: | E_LUA_ERROR | = | 125 |
Lua message handling error. |
integer, | public, | parameter | :: | E_LUA_FILE | = | 126 |
Lua file I/O error. |
integer, | public, | parameter | :: | E_LIB | = | 130 |
Generic library error. |
integer, | public, | parameter | :: | E_MODBUS | = | 131 |
Modbus error. |
integer, | public, | parameter | :: | E_HDF5 | = | 132 |
HDF5 error. |
integer, | public, | parameter | :: | E_ZLIB | = | 133 |
zlib error. |
integer, | public, | parameter | :: | E_ZSTD | = | 134 |
Zstandard error. |
integer, | public, | parameter | :: | E_XMPP | = | 135 |
libstrophe error. |
integer, | public, | parameter | :: | E_LAST | = | 135 |
Never use this. |
integer, | public, | parameter | :: | STOP_SUCCESS | = | 0 |
Exit status 0. |
integer, | public, | parameter | :: | STOP_FAILURE | = | 1 |
Exit status 1. |
Alias for dm_error_out()
, do not use.
Prints error description to stderr
. If verbose
is .true.
, the
routine outputs even if no error occured (E_NONE
).
If extra
is .true.
, the routine outputs the default error
message for the given error code additionally to the message.
If fatal
is .true.
, the routine terminates with exit code 1
on
error.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | error |
DMPACK error code. |
||
character(len=*), | intent(in), | optional | :: | message |
Optional error message. |
|
logical, | intent(in), | optional | :: | verbose |
If |
|
logical, | intent(in), | optional | :: | extra |
If |
|
logical, | intent(in), | optional | :: | fatal |
If |
Returns whether given error code is (likely) valid.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | error |
Error code. |
Returns error message of given error code error
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | error |
Error code. |
Error message.
Returns .true.
if given code is an error (not E_NONE
).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | error |
Error code. |
Returns .true.
if given code is not an error (E_NONE
).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | error |
Error code. |
Prints error description to stderr
. If verbose
is .true.
, the
routine outputs even if no error occured (E_NONE
).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | error |
DMPACK error code. |
||
character(len=*), | intent(in), | optional | :: | message |
Optional error message. |
|
logical, | intent(in), | optional | :: | verbose |
If |
|
logical, | intent(in), | optional | :: | extra |
If |
|
logical, | intent(in), | optional | :: | fatal |
If |
Stops program execution with optional exit status stat
. The exit
status may be STOP_SUCCESS
or STOP_FAILURE
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | stat |
Exit status. |