dm_error Module

Error codes, error messages, and utility routines.


Uses

  • module~~dm_error~~UsesGraph module~dm_error dm_error module~dm_ascii dm_ascii module~dm_error->module~dm_ascii module~dm_kind dm_kind module~dm_error->module~dm_kind iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env

Used by

  • module~~dm_error~~UsedByGraph module~dm_error dm_error module~dm_api_status dm_api_status module~dm_api_status->module~dm_error module~dm_time dm_time module~dm_api_status->module~dm_time module~dm_util dm_util module~dm_api_status->module~dm_util module~dm_arg dm_arg module~dm_arg->module~dm_error module~dm_file dm_file module~dm_arg->module~dm_file module~dm_arg->module~dm_util module~dm_base64 dm_base64 module~dm_base64->module~dm_error module~dm_beat dm_beat module~dm_beat->module~dm_error module~dm_beat->module~dm_time module~dm_block dm_block module~dm_block->module~dm_error module~dm_dp dm_dp module~dm_block->module~dm_dp module~dm_camera dm_camera module~dm_camera->module~dm_error module~dm_camera->module~dm_file module~dm_string dm_string module~dm_camera->module~dm_string module~dm_cgi dm_cgi module~dm_cgi->module~dm_error module~dm_cgi->module~dm_string module~dm_cgi->module~dm_time module~dm_cgi->module~dm_util module~dm_cgi_router dm_cgi_router module~dm_cgi_router->module~dm_error module~dm_cgi_router->module~dm_cgi module~dm_hash_table dm_hash_table module~dm_cgi_router->module~dm_hash_table module~dm_config dm_config module~dm_config->module~dm_error module~dm_lua dm_lua module~dm_config->module~dm_lua module~dm_config->module~dm_string module~dm_csv dm_csv module~dm_csv->module~dm_error module~dm_csv->module~dm_string module~dm_csv->module~dm_util module~dm_db dm_db module~dm_db->module~dm_error module~dm_db->module~dm_string module~dm_db->module~dm_time module~dm_db->module~dm_util module~dm_dp->module~dm_error module~dm_dp->module~dm_time module~dm_env dm_env module~dm_env->module~dm_error module~dm_env->module~dm_string module~dm_fcgi dm_fcgi module~dm_fcgi->module~dm_error module~dm_fcgi->module~dm_cgi module~dm_fifo dm_fifo module~dm_fifo->module~dm_error module~dm_fifo->module~dm_file module~dm_file->module~dm_error module~dm_geocom dm_geocom module~dm_geocom->module~dm_error module~dm_geocom_type dm_geocom_type module~dm_geocom->module~dm_geocom_type module~dm_request dm_request module~dm_geocom->module~dm_request module~dm_response dm_response module~dm_geocom->module~dm_response module~dm_tty dm_tty module~dm_geocom->module~dm_tty module~dm_geocom->module~dm_util module~dm_geocom_api dm_geocom_api module~dm_geocom->module~dm_geocom_api module~dm_geocom_type->module~dm_error module~dm_geojson dm_geojson module~dm_geojson->module~dm_error module~dm_json dm_json module~dm_geojson->module~dm_json module~dm_geojson->module~dm_util module~dm_gm dm_gm module~dm_gm->module~dm_error module~dm_gm->module~dm_file module~dm_hash_table->module~dm_error module~dm_hdf5 dm_hdf5 module~dm_hdf5->module~dm_error module~dm_html dm_html module~dm_html->module~dm_error module~dm_html->module~dm_string module~dm_html->module~dm_util module~dm_im dm_im module~dm_im->module~dm_error module~dm_im->module~dm_file module~dm_sem dm_sem module~dm_im->module~dm_sem module~dm_job dm_job module~dm_job->module~dm_error module~dm_observ dm_observ module~dm_job->module~dm_observ module~dm_json->module~dm_error module~dm_json->module~dm_dp module~dm_json->module~dm_util module~dm_jsonl dm_jsonl module~dm_jsonl->module~dm_error module~dm_jsonl->module~dm_json module~dm_jsonl->module~dm_util module~dm_log dm_log module~dm_log->module~dm_error module~dm_log->module~dm_observ module~dm_log->module~dm_time module~dm_target dm_target module~dm_log->module~dm_target module~dm_logger dm_logger module~dm_logger->module~dm_error module~dm_logger->module~dm_log module~dm_logger->module~dm_observ module~dm_lua->module~dm_error module~dm_lua->module~dm_file module~dm_lua->module~dm_string module~dm_lua->module~dm_util module~dm_lua_api dm_lua_api module~dm_lua_api->module~dm_error module~dm_lua_api->module~dm_lua module~dm_lua_api->module~dm_util module~dm_lua_geocom dm_lua_geocom module~dm_lua_geocom->module~dm_error module~dm_lua_geocom->module~dm_geocom_type module~dm_lua_geocom->module~dm_lua module~dm_lua_geocom->module~dm_request module~dm_lua_geocom->module~dm_geocom_api module~dm_mail dm_mail module~dm_mail->module~dm_error module~dm_mail->module~dm_time module~dm_mail->module~dm_util module~dm_modbus dm_modbus module~dm_modbus->module~dm_error module~dm_mqtt dm_mqtt module~dm_mqtt->module~dm_error module~dm_mqtt->module~dm_util module~dm_mqueue dm_mqueue module~dm_mqueue->module~dm_error module~dm_mqueue->module~dm_log module~dm_mqueue->module~dm_observ module~dm_mqueue_util dm_mqueue_util module~dm_mqueue_util->module~dm_error module~dm_mqueue_util->module~dm_mqueue module~dm_mqueue_util->module~dm_util module~dm_mutex dm_mutex module~dm_mutex->module~dm_error module~dm_nml dm_nml module~dm_nml->module~dm_error module~dm_observ->module~dm_error module~dm_observ->module~dm_request module~dm_observ->module~dm_response module~dm_observ->module~dm_time module~dm_observ->module~dm_util module~dm_observ->module~dm_target module~dm_pipe dm_pipe module~dm_pipe->module~dm_error module~dm_plot dm_plot module~dm_plot->module~dm_error module~dm_plot->module~dm_dp module~dm_plot->module~dm_file module~dm_plot->module~dm_pipe module~dm_plot->module~dm_string module~dm_plot->module~dm_time module~dm_regex dm_regex module~dm_regex->module~dm_error module~dm_request->module~dm_error module~dm_request->module~dm_response module~dm_request->module~dm_string module~dm_request->module~dm_time module~dm_request->module~dm_util module~dm_response->module~dm_error module~dm_response->module~dm_util module~dm_rpc dm_rpc module~dm_rpc->module~dm_error module~dm_rpc->module~dm_util module~dm_z dm_z module~dm_rpc->module~dm_z module~dm_sem->module~dm_error module~dm_string->module~dm_error module~dm_system dm_system module~dm_system->module~dm_error module~dm_test dm_test module~dm_test->module~dm_error module~dm_test->module~dm_time module~dm_test->module~dm_util module~dm_thread dm_thread module~dm_thread->module~dm_error module~dm_time->module~dm_error module~dm_time->module~dm_util module~dm_transform dm_transform module~dm_transform->module~dm_error module~dm_transform->module~dm_util module~dm_tty->module~dm_error module~dm_tty->module~dm_file module~dm_tty->module~dm_string module~dm_unit dm_unit module~dm_unit->module~dm_error module~dm_unit->module~dm_util module~dm_util->module~dm_error module~dm_z->module~dm_error module~dm_z->module~dm_nml module~dm_zlib dm_zlib module~dm_z->module~dm_zlib module~dm_zstd dm_zstd module~dm_z->module~dm_zstd module~dm_zlib->module~dm_error module~dm_zstd->module~dm_error module~dmpack dmpack module~dmpack->module~dm_error module~dmpack->module~dm_api_status module~dmpack->module~dm_arg module~dmpack->module~dm_base64 module~dmpack->module~dm_beat module~dmpack->module~dm_block module~dmpack->module~dm_camera module~dmpack->module~dm_cgi module~dmpack->module~dm_cgi_router module~dmpack->module~dm_config module~dmpack->module~dm_csv module~dmpack->module~dm_db module~dmpack->module~dm_dp module~dmpack->module~dm_env module~dmpack->module~dm_fcgi module~dmpack->module~dm_fifo module~dmpack->module~dm_file module~dmpack->module~dm_geocom module~dmpack->module~dm_geocom_type module~dmpack->module~dm_geojson module~dmpack->module~dm_gm module~dmpack->module~dm_hash_table module~dmpack->module~dm_hdf5 module~dmpack->module~dm_html module~dmpack->module~dm_im module~dmpack->module~dm_job module~dmpack->module~dm_json module~dmpack->module~dm_jsonl module~dmpack->module~dm_log module~dmpack->module~dm_logger module~dmpack->module~dm_lua module~dmpack->module~dm_lua_api module~dmpack->module~dm_lua_geocom module~dmpack->module~dm_mail module~dmpack->module~dm_modbus module~dmpack->module~dm_mqtt module~dmpack->module~dm_mqueue module~dmpack->module~dm_mqueue_util module~dmpack->module~dm_mutex module~dmpack->module~dm_nml module~dmpack->module~dm_observ module~dmpack->module~dm_pipe module~dmpack->module~dm_plot module~dmpack->module~dm_regex module~dmpack->module~dm_request module~dmpack->module~dm_response module~dmpack->module~dm_rpc module~dmpack->module~dm_sem module~dmpack->module~dm_string module~dmpack->module~dm_system module~dmpack->module~dm_test module~dmpack->module~dm_thread module~dmpack->module~dm_time module~dmpack->module~dm_transform module~dmpack->module~dm_tty module~dmpack->module~dm_unit module~dmpack->module~dm_util module~dmpack->module~dm_z module~dmpack->module~dm_zlib module~dmpack->module~dm_zstd module~dm_atom dm_atom module~dmpack->module~dm_atom module~dm_crypto dm_crypto module~dmpack->module~dm_crypto module~dmpack->module~dm_geocom_api module~dm_image dm_image module~dmpack->module~dm_image module~dm_report dm_report module~dmpack->module~dm_report module~dm_sync dm_sync module~dmpack->module~dm_sync module~dmpack->module~dm_target module~dm_atom->module~dm_html module~dm_atom->module~dm_log module~dm_atom->module~dm_time module~dm_crypto->module~dm_string module~dm_geocom_api->module~dm_geocom_type module~dm_geocom_api->module~dm_request module~dm_geocom_api->module~dm_response module~dm_geocom_api->module~dm_util module~dm_image->module~dm_time module~dm_report->module~dm_file module~dm_report->module~dm_log module~dm_report->module~dm_plot module~dm_report->module~dm_response module~dm_report->module~dm_time module~dm_report->module~dm_target module~dm_sync->module~dm_observ module~dm_sync->module~dm_string module~dm_sync->module~dm_time module~dm_target->module~dm_util proc~dm_api_status_from_string dm_api_status_from_string proc~dm_api_status_from_string->module~dm_string proc~dm_arg_validate dm_arg_validate proc~dm_arg_validate->module~dm_log proc~dm_arg_validate->module~dm_string proc~dm_arg_validate->module~dm_time proc~dm_beat_is_valid dm_beat_is_valid proc~dm_beat_is_valid->module~dm_string proc~dm_config_open dm_config_open proc~dm_config_open->module~dm_file proc~dm_config_open->module~dm_lua_api proc~dm_config_open->module~dm_lua_geocom proc~dm_csv_header_observ dm_csv_header_observ proc~dm_csv_header_observ->module~dm_observ proc~dm_csv_header_observ->module~dm_request proc~dm_db_attach dm_db_attach proc~dm_db_attach->module~dm_file proc~dm_db_backup dm_db_backup proc~dm_db_backup->module~dm_file proc~dm_db_insert_beat dm_db_insert_beat proc~dm_db_insert_beat->module~dm_beat proc~dm_db_insert_beats dm_db_insert_beats proc~dm_db_insert_beats->module~dm_beat proc~dm_db_insert_log dm_db_insert_log proc~dm_db_insert_log->module~dm_log proc~dm_db_insert_observ dm_db_insert_observ proc~dm_db_insert_observ->module~dm_observ proc~dm_db_insert_observs dm_db_insert_observs proc~dm_db_insert_observs->module~dm_observ proc~dm_db_open dm_db_open proc~dm_db_open->module~dm_file proc~dm_db_select_beat dm_db_select_beat proc~dm_db_select_beat->module~dm_beat proc~dm_db_select_log dm_db_select_log proc~dm_db_select_log->module~dm_log proc~dm_db_select_logs_by_observ dm_db_select_logs_by_observ proc~dm_db_select_logs_by_observ->module~dm_log proc~dm_db_select_observ dm_db_select_observ proc~dm_db_select_observ->module~dm_observ proc~dm_db_select_observ_ids dm_db_select_observ_ids proc~dm_db_select_observ_ids->module~dm_observ proc~dm_db_select_observ_views dm_db_select_observ_views proc~dm_db_select_observ_views->module~dm_observ proc~dm_db_select_observs_by_id dm_db_select_observs_by_id proc~dm_db_select_observs_by_id->module~dm_observ proc~dm_db_select_observs_by_time dm_db_select_observs_by_time proc~dm_db_select_observs_by_time->module~dm_observ proc~dm_db_vacuum dm_db_vacuum proc~dm_db_vacuum->module~dm_file proc~dm_fcgi_header dm_fcgi_header proc~dm_fcgi_header->module~dm_util proc~dm_format_from_name dm_format_from_name proc~dm_format_from_name->module~dm_string proc~dm_geocom_error_message dm_geocom_error_message proc~dm_geocom_error_message->module~dm_util proc~dm_hdf5_file_is_valid dm_hdf5_file_is_valid proc~dm_hdf5_file_is_valid->module~dm_file proc~dm_html_beat dm_html_beat proc~dm_html_beat->module~dm_beat proc~dm_html_beat->module~dm_time proc~dm_html_beats dm_html_beats proc~dm_html_beats->module~dm_beat proc~dm_html_beats->module~dm_time proc~dm_html_cgi_env dm_html_cgi_env proc~dm_html_cgi_env->module~dm_cgi proc~dm_html_data_uri dm_html_data_uri proc~dm_html_data_uri->module~dm_base64 proc~dm_html_log dm_html_log proc~dm_html_log->module~dm_log proc~dm_html_logs dm_html_logs proc~dm_html_logs->module~dm_log proc~dm_html_observ dm_html_observ proc~dm_html_observ->module~dm_observ proc~dm_html_observs dm_html_observs proc~dm_html_observs->module~dm_observ proc~dm_html_request dm_html_request proc~dm_html_request->module~dm_request proc~dm_html_responses dm_html_responses proc~dm_html_responses->module~dm_response proc~dm_html_time dm_html_time proc~dm_html_time->module~dm_time proc~dm_im_create_iq_http_upload dm_im_create_iq_http_upload proc~dm_im_create_iq_http_upload->module~dm_util proc~dm_im_send_presence dm_im_send_presence proc~dm_im_send_presence->module~dm_string proc~dm_log_is_valid dm_log_is_valid proc~dm_log_is_valid->module~dm_string proc~dm_log_level_from_name dm_log_level_from_name proc~dm_log_level_from_name->module~dm_string proc~dm_log_level_from_string dm_log_level_from_string proc~dm_log_level_from_string->module~dm_string proc~dm_lua_api_register dm_lua_api_register proc~dm_lua_api_register->module~dm_log proc~dm_lua_api_register->module~dm_response proc~dm_lua_geocom_register dm_lua_geocom_register proc~dm_lua_geocom_register->module~dm_util proc~dm_modbus_byte_order_from_name dm_modbus_byte_order_from_name proc~dm_modbus_byte_order_from_name->module~dm_string proc~dm_modbus_create_rtu dm_modbus_create_rtu proc~dm_modbus_create_rtu->module~dm_tty proc~dm_node_equals dm_node_equals proc~dm_node_equals->module~dm_util proc~dm_regex_request dm_regex_request proc~dm_regex_request->module~dm_request proc~dm_regex_request->module~dm_response proc~dm_regex_request->module~dm_string proc~dm_regex_request->module~dm_util proc~dm_regex_response_string dm_regex_response_string proc~dm_regex_response_string->module~dm_request proc~dm_rpc_post_types dm_rpc_post_types proc~dm_rpc_post_types->module~dm_zstd proc~dm_sensor_equals dm_sensor_equals proc~dm_sensor_equals->module~dm_util proc~dm_sensor_type_from_name dm_sensor_type_from_name proc~dm_sensor_type_from_name->module~dm_string proc~dm_signal_name dm_signal_name proc~dm_signal_name->module~dm_util proc~dm_test_dummy_beat dm_test_dummy_beat proc~dm_test_dummy_beat->module~dm_beat proc~dm_test_dummy_log dm_test_dummy_log proc~dm_test_dummy_log->module~dm_log proc~dm_test_dummy_observ dm_test_dummy_observ proc~dm_test_dummy_observ->module~dm_observ proc~dm_test_dummy_observ->module~dm_request proc~dm_test_dummy_request dm_test_dummy_request proc~dm_test_dummy_request->module~dm_request proc~dm_test_dummy_request->module~dm_response proc~dm_test_run dm_test_run proc~dm_test_run->module~dm_system proc~dm_test_run->module~dm_time proc~dm_test_skip dm_test_skip proc~dm_test_skip->module~dm_env proc~dm_tty_read_request dm_tty_read_request proc~dm_tty_read_request->module~dm_request proc~dm_tty_write_request dm_tty_write_request proc~dm_tty_write_request->module~dm_request proc~dm_type_from_name dm_type_from_name proc~dm_type_from_name->module~dm_string proc~dm_z_compress_type dm_z_compress_type proc~dm_z_compress_type->module~dm_beat proc~dm_z_compress_type->module~dm_log proc~dm_z_compress_type->module~dm_observ proc~dm_z_compress_type->module~dm_target proc~dm_z_compress_types dm_z_compress_types proc~dm_z_compress_types->module~dm_string proc~dm_z_type_from_name dm_z_type_from_name proc~dm_z_type_from_name->module~dm_string proc~luaopen_libdmpack luaopen_libdmpack proc~luaopen_libdmpack->module~dm_lua proc~luaopen_libdmpack->module~dm_lua_api proc~luaopen_libdmpack->module~dm_lua_geocom proc~dm_db_insert_sync dm_db_insert_sync proc~dm_db_insert_sync->module~dm_sync proc~dm_db_insert_sync_log dm_db_insert_sync_log proc~dm_db_insert_sync_log->module~dm_sync proc~dm_db_insert_sync_node dm_db_insert_sync_node proc~dm_db_insert_sync_node->module~dm_sync proc~dm_db_insert_sync_observ dm_db_insert_sync_observ proc~dm_db_insert_sync_observ->module~dm_sync proc~dm_db_insert_sync_sensor dm_db_insert_sync_sensor proc~dm_db_insert_sync_sensor->module~dm_sync proc~dm_db_insert_sync_target dm_db_insert_sync_target proc~dm_db_insert_sync_target->module~dm_sync proc~dm_db_insert_target dm_db_insert_target proc~dm_db_insert_target->module~dm_target proc~dm_db_select_sync_log dm_db_select_sync_log proc~dm_db_select_sync_log->module~dm_sync proc~dm_db_select_sync_logs dm_db_select_sync_logs proc~dm_db_select_sync_logs->module~dm_sync proc~dm_db_select_sync_node dm_db_select_sync_node proc~dm_db_select_sync_node->module~dm_sync proc~dm_db_select_sync_nodes dm_db_select_sync_nodes proc~dm_db_select_sync_nodes->module~dm_sync proc~dm_db_select_sync_observ dm_db_select_sync_observ proc~dm_db_select_sync_observ->module~dm_sync proc~dm_db_select_sync_observs dm_db_select_sync_observs proc~dm_db_select_sync_observs->module~dm_sync proc~dm_db_select_sync_sensor dm_db_select_sync_sensor proc~dm_db_select_sync_sensor->module~dm_sync proc~dm_db_select_sync_sensors dm_db_select_sync_sensors proc~dm_db_select_sync_sensors->module~dm_sync proc~dm_db_select_sync_target dm_db_select_sync_target proc~dm_db_select_sync_target->module~dm_sync proc~dm_db_select_sync_targets dm_db_select_sync_targets proc~dm_db_select_sync_targets->module~dm_sync proc~dm_db_select_target dm_db_select_target proc~dm_db_select_target->module~dm_target proc~dm_db_update_target dm_db_update_target proc~dm_db_update_target->module~dm_target proc~dm_html_target dm_html_target proc~dm_html_target->module~dm_target proc~dm_html_targets dm_html_targets proc~dm_html_targets->module~dm_target proc~dm_test_dummy_target dm_test_dummy_target proc~dm_test_dummy_target->module~dm_target

Variables

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.


Interfaces

public interface dm_perror

Alias for dm_error_out(), do not use.

  • public subroutine dm_error_out(error, message, verbose, extra, fatal)

    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.

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in) :: error

    DMPACK error code.

    character(len=*), intent(in), optional :: message

    Optional error message.

    logical, intent(in), optional :: verbose

    If .true., print message on E_NONE too.

    logical, intent(in), optional :: extra

    If .true., print additional error code message.

    logical, intent(in), optional :: fatal

    If .true., stop program on error.


Functions

public pure elemental function dm_error_is_valid(error) result(valid)

Returns whether given error code is (likely) valid.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: error

Error code.

Return Value logical

public pure function dm_error_message(error) result(message)

Returns error message of given error code error.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: error

Error code.

Return Value character(len=:), allocatable

Error message.

public pure elemental function dm_is_error(error) result(is_error)

Returns .true. if given code is an error (not E_NONE).

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: error

Error code.

Return Value logical

public pure elemental function dm_is_ok(error) result(is_ok)

Returns .true. if given code is not an error (E_NONE).

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: error

Error code.

Return Value logical


Subroutines

public subroutine dm_error_out(error, message, verbose, extra, fatal)

Prints error description to stderr. If verbose is .true., the routine outputs even if no error occured (E_NONE).

Read more…

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: error

DMPACK error code.

character(len=*), intent(in), optional :: message

Optional error message.

logical, intent(in), optional :: verbose

If .true., print message on E_NONE too.

logical, intent(in), optional :: extra

If .true., print additional error code message.

logical, intent(in), optional :: fatal

If .true., stop program on error.

public subroutine dm_stop(stat)

Stops program execution with optional exit status stat. The exit status may be STOP_SUCCESS or STOP_FAILURE.

Arguments

Type IntentOptional Attributes Name
integer, intent(in), optional :: stat

Exit status.