> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# File dynamic_visualization_store_error_codes.h

![][C++]

Contains errors used in the DVS C/C++ API.

## Includes

* \<stdint.h>

```mermaid theme={null}
graph LR
1["dynamic_visualization_store_error_codes.h"]
click 1 "/docs/ensight/dynamic-visualization-store/reference/files/dynamic__visualization__store__error__codes_8h"
1 --> 2

2["stdint.h"]

```

## Included by

* [dvs\_dataset\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__dataset__interface_8h.md)
* [dvs\_element\_block\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__element__block__interface_8h.md)
* [dvs\_hash\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__hash__interface_8h.md)
* [dvs\_mesh\_chunk\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__mesh__chunk__interface_8h.md)
* [dvs\_object\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__object__interface_8h.md)
* [dvs\_plot\_chunk\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__plot__chunk__interface_8h.md)
* [dvs\_query\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__query__interface_8h.md)
* [dvs\_var\_hash\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__var__hash__interface_8h.md)
* [dvs\_var\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__var__interface_8h.md)
* [dynamic\_visualization\_store\_api.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dynamic__visualization__store__api_8h.md)

```mermaid theme={null}
graph RL
5["dvs_client_interface.h"]
click 5 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__client__interface_8h"
6 --> 5

2["dvs_dataset_interface.h"]
click 2 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__dataset__interface_8h"
3 --> 2

9["dvs_element_block_interface.h"]
click 9 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__element__block__interface_8h"
10 --> 9

11["dvs_hash_interface.h"]
click 11 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__hash__interface_8h"
9 --> 11
10 --> 11
12 --> 11

10["dvs_mesh_chunk_interface.h"]
click 10 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__mesh__chunk__interface_8h"
3 --> 10

13["dvs_object_interface.h"]
click 13 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__object__interface_8h"
2 --> 13
10 --> 13
12 --> 13
3 --> 13

12["dvs_plot_chunk_interface.h"]
click 12 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__plot__chunk__interface_8h"
3 --> 12

3["dvs_query_interface.h"]
click 3 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__query__interface_8h"
4 --> 3

4["dvs_server_interface.h"]
click 4 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__server__interface_8h"
5 --> 4
6 --> 4
7 --> 4
8 --> 4

14["dvs_var_hash_interface.h"]
click 14 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__var__hash__interface_8h"
9 --> 14
10 --> 14

15["dvs_var_interface.h"]
click 15 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__var__interface_8h"
2 --> 15
10 --> 15
3 --> 15
14 --> 15

16["dynamic_visualization_store_api.h"]
click 16 "/docs/ensight/dynamic-visualization-store/reference/files/dynamic__visualization__store__api_8h"
5 --> 16
17 --> 16
18 --> 16
19 --> 16

1["dynamic_visualization_store_error_codes.h"]
click 1 "/docs/ensight/dynamic-visualization-store/reference/files/dynamic__visualization__store__error__codes_8h"
2 --> 1
9 --> 1
11 --> 1
10 --> 1
13 --> 1
12 --> 1
3 --> 1
14 --> 1
15 --> 1
16 --> 1

17["logger_interface.h"]
5 --> 17
3 --> 17
18 --> 17

18["logger_verbose.h"]
7 --> 18

19["test_dvs_client.c"]
click 19 "/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__client_8c"

6["test_dvs_client_cxx.cpp"]
click 6 "/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__client__cxx_8cpp"

7["test_dvs_reader.cpp"]
click 7 "/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__reader_8cpp"

8["test_dvs_server.cpp"]
click 8 "/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__server_8cpp"

```

## Macros

### Macro DVS\_PARAM\_NULL

![][public]

```cpp theme={null}
#define DVS_PARAM_NULL -100
```

Param passed into method was NULL when it should not be.

### Macro DVS\_PARAM\_INVALID\_SIZE

![][public]

```cpp theme={null}
#define DVS_PARAM_INVALID_SIZE -101
```

Param passed in was of invalid size.

### Macro DVS\_PARAM\_OUT\_OF\_BOUNDS

![][public]

```cpp theme={null}
#define DVS_PARAM_OUT_OF_BOUNDS -102
```

A parameter index was out of bounds.

### Macro DVS\_INVALID\_ID

![][public]

```cpp theme={null}
#define DVS_INVALID_ID -103
```

Invalid ID passed in.

### Macro DVS\_PARAM\_INVALID\_VAR

![][public]

```cpp theme={null}
#define DVS_PARAM_INVALID_VAR -104
```

Invalid variable passed in.

### Macro DVS\_PARAM\_INVALID\_VAR\_LOC

![][public]

```cpp theme={null}
#define DVS_PARAM_INVALID_VAR_LOC -105
```

Invalid variable location passed in.

### Macro DVS\_PARAM\_INVALID\_OBJECT

![][public]

```cpp theme={null}
#define DVS_PARAM_INVALID_OBJECT -106
```

Invalid object passed in.

### Macro DVS\_PARAM\_INVALID\_OBJECT\_TYPE

![][public]

```cpp theme={null}
#define DVS_PARAM_INVALID_OBJECT_TYPE -107
```

Invalid object type passed in.

### Macro DVS\_PARAM\_INVALID\_TIME

![][public]

```cpp theme={null}
#define DVS_PARAM_INVALID_TIME -108
```

Invalid time passed in.

### Macro DVS\_PARAM\_OBJECT\_DATASET\_MISMATCH

![][public]

```cpp theme={null}
#define DVS_PARAM_OBJECT_DATASET_MISMATCH -109
```

Objects passed in belong to different datasets.

### Macro DVS\_PARAM\_INVALID

![][public]

```cpp theme={null}
#define DVS_PARAM_INVALID -110
```

Parameter invalid, see error messages.

### Macro DVS\_INVALID\_NAME

![][public]

```cpp theme={null}
#define DVS_INVALID_NAME -111
```

Invalid part name.

### Macro DVS\_DUPLICATE\_ELEM\_BLOCK\_TYPE

![][public]

```cpp theme={null}
#define DVS_DUPLICATE_ELEM_BLOCK_TYPE -112
```

Duplicate element block of same type added, only one element block should be added for each element type.

### Macro DVS\_TRANSPORT\_NULL\_INVALID\_SERVER

![][public]

```cpp theme={null}
#define DVS_TRANSPORT_NULL_INVALID_SERVER -150
```

Internal error, server failed to be instantiated.

### Macro DVS\_TRANSPORT\_SERVICE\_UNAVAILABLE

![][public]

```cpp theme={null}
#define DVS_TRANSPORT_SERVICE_UNAVAILABLE -151
```

Service is unavailable. Potentially increase number of retries and backoff timer.

### Macro DVS\_TRANSPORT\_SERVICE\_FAILURE

![][public]

```cpp theme={null}
#define DVS_TRANSPORT_SERVICE_FAILURE -152
```

Unrecoverable error, turn on verbose logging to get more information, might be fine depending on use.

### Macro DVS\_ID\_INVALID

![][public]

```cpp theme={null}
#define DVS_ID_INVALID -200
```

Server or client ID is not valid.

### Macro DVS\_ID\_INVALID\_TYPE

![][public]

```cpp theme={null}
#define DVS_ID_INVALID_TYPE -201
```

Client ID used for Server ID or Server ID used for Client ID.

### Macro DVS\_ID\_NO\_VALID\_SERVER

![][public]

```cpp theme={null}
#define DVS_ID_NO_VALID_SERVER -202
```

Server ID is not valid or server instance no longer valid.

### Macro DVS\_ID\_NO\_VALID\_SESSION

![][public]

```cpp theme={null}
#define DVS_ID_NO_VALID_SESSION -203
```

Session ID for client is not valid or client instance no longer valid.

### Macro DVS\_ID\_OUT\_OF\_IDS

![][public]

```cpp theme={null}
#define DVS_ID_OUT_OF_IDS -204
```

Maximum number of clients 1,048,575 reached.

### Macro DVS\_SERVER\_START\_FAILED

![][public]

```cpp theme={null}
#define DVS_SERVER_START_FAILED -300
```

Internal error, server failed to start.

### Macro DVS\_SERVER\_ALREADY\_STARTED

![][public]

```cpp theme={null}
#define DVS_SERVER_ALREADY_STARTED -301
```

Server was already previously started.

### Macro DVS\_SERVER\_NOT\_STARTED

![][public]

```cpp theme={null}
#define DVS_SERVER_NOT_STARTED -302
```

DVS server terminating.

### Macro DVS\_SERVER\_FAILED\_INIT

![][public]

```cpp theme={null}
#define DVS_SERVER_FAILED_INIT -303
```

DVS server failed to initialize.

### Macro DVS\_SERVER\_FAILED\_SYNC\_RANKS

![][public]

```cpp theme={null}
#define DVS_SERVER_FAILED_SYNC_RANKS -304
```

DVS server failed syncing ranks, servers disagree on number of ranks.

### Macro DVS\_SERVER\_FAILED\_DEFINITIONS\_MERGE

![][public]

```cpp theme={null}
#define DVS_SERVER_FAILED_DEFINITIONS_MERGE -305
```

Merging definitions across server failed, definitions across servers do not match up.

### Macro DVS\_SERVER\_FAILED\_TIMELINE\_SYNC

![][public]

```cpp theme={null}
#define DVS_SERVER_FAILED_TIMELINE_SYNC -306
```

Syncing timelines between servers failed.

### Macro DVS\_SERVER\_FAILED\_READER\_CREATE

![][public]

```cpp theme={null}
#define DVS_SERVER_FAILED_READER_CREATE -307
```

Internal error for fatal error.

### Macro DVS\_SERVER\_WAIT\_TIMEOUT

![][public]

```cpp theme={null}
#define DVS_SERVER_WAIT_TIMEOUT -308
```

Timeout occured, increase wait time if unintended.

### Macro DVS\_SERVER\_CACHE\_NOT\_ACCESSIBLE

![][public]

```cpp theme={null}
#define DVS_SERVER_CACHE_NOT_ACCESSIBLE -309
```

The cache is not available for write.

### Macro DVS\_SERVER\_QUERY\_FAILED

![][public]

```cpp theme={null}
#define DVS_SERVER_QUERY_FAILED -310
```

The server query cannot be created yet.

### Macro DVS\_SERVER\_TERMINATING

![][public]

```cpp theme={null}
#define DVS_SERVER_TERMINATING 300
```

DVS server terminating.

### Macro DVS\_CLIENT\_INVALID\_TRANSPORT

![][public]

```cpp theme={null}
#define DVS_CLIENT_INVALID_TRANSPORT -400
```

Internal error, tranport layer failed to instantiate.

### Macro DVS\_CLIENT\_WAIT\_TIMEOUT

![][public]

```cpp theme={null}
#define DVS_CLIENT_WAIT_TIMEOUT -401
```

Timeout waiting for client to connect to server, increase timeout if unintended.

### Macro DVS\_DATASET\_NAME\_EMPTY

![][public]

```cpp theme={null}
#define DVS_DATASET_NAME_EMPTY -500
```

Dataset name passed in is empty.

### Macro DVS\_NO\_DATA

![][public]

```cpp theme={null}
#define DVS_NO_DATA -502
```

This object has no data.

### Macro DVS\_METADATA\_NO\_HASH\_OFFSET\_TABLE

![][public]

```cpp theme={null}
#define DVS_METADATA_NO_HASH_OFFSET_TABLE -600
```

Internal error in case of table not available. Needed for backward compatibility.

### Macro DVS\_METADATA\_HASH\_OFFSET\_TABLE\_BACKCOMPAT

![][public]

```cpp theme={null}
#define DVS_METADATA_HASH_OFFSET_TABLE_BACKCOMPAT -601
```

Internal error in case of table avaiable but with negative values. Needed for backward compatibility.

### Macro DVS\_INVALID\_STRUCTURED\_DATA

![][public]

```cpp theme={null}
#define DVS_INVALID_STRUCTURED_DATA -700
```

Internal error, structured data structure is invalid.

### Macro DVS\_INVALID\_ELEMENT\_TYPE

![][public]

```cpp theme={null}
#define DVS_INVALID_ELEMENT_TYPE -701
```

The element type is invalid for this method.

### Macro DVS\_INVALID\_MESH\_TYPE

![][public]

```cpp theme={null}
#define DVS_INVALID_MESH_TYPE -702
```

Invalid mesh type for this method.

### Macro DVS\_INVALID\_CONNECTIVITY\_RANGE

![][public]

```cpp theme={null}
#define DVS_INVALID_CONNECTIVITY_RANGE -703
```

Connectivity index higher than number of nodes (should be zero based).

### Macro DVS\_TYPE\_MISMATCH

![][public]

```cpp theme={null}
#define DVS_TYPE_MISMATCH -704
```

Mismatched DVS data types.

### Macro DVS\_VERSION\_MISMATCH

![][public]

```cpp theme={null}
#define DVS_VERSION_MISMATCH -800
```

Invalid version, please update client and server to match.

### Macro DVS\_VERSION\_UNKNOWN

![][public]

```cpp theme={null}
#define DVS_VERSION_UNKNOWN -801
```

Unknown version, please update client and server to match.

### Macro DVS\_QUERY\_INVALID\_FILTER

![][public]

```cpp theme={null}
#define DVS_QUERY_INVALID_FILTER -900
```

Filter is incorrectly formed.

### Macro DVS\_QUERY\_INVALID\_URI

![][public]

```cpp theme={null}
#define DVS_QUERY_INVALID_URI -901
```

URI is incorrectly formed.

### Macro DVS\_QUERY\_HAS\_CHILDREN

![][public]

```cpp theme={null}
#define DVS_QUERY_HAS_CHILDREN -903
```

A query cannot be modified if it still has child chained queries.

### Macro DVS\_HASH\_NOT\_FOUND

![][public]

```cpp theme={null}
#define DVS_HASH_NOT_FOUND -8
```

Hash not found in cache when it should be, data invalid.

### Macro DVS\_METADATA\_ERROR

![][public]

```cpp theme={null}
#define DVS_METADATA_ERROR -7
```

Error loading metadata.

### Macro DVS\_CACHE\_EMPTY

![][public]

```cpp theme={null}
#define DVS_CACHE_EMPTY -6
```

No server folders in cache.

### Macro DVS\_CACHE\_MISSING\_SERVERS

![][public]

```cpp theme={null}
#define DVS_CACHE_MISSING_SERVERS -5
```

Gaps in number of servers, data corrupt?

### Macro DVS\_INVALID\_HASH

![][public]

```cpp theme={null}
#define DVS_INVALID_HASH -4
```

Object hash is invalid, should not happen.

### Macro DVS\_DATA\_FAILED\_LOAD

![][public]

```cpp theme={null}
#define DVS_DATA_FAILED_LOAD -3
```

Data failed to load from the cache, potentially doesn't exist.

### Macro DVS\_INVALID\_CACHE

![][public]

```cpp theme={null}
#define DVS_INVALID_CACHE -2
```

There was an error creating/accessing the cache, might not exist or not readable (bad permissions?).

### Macro DVS\_UNKNOWN

![][public]

```cpp theme={null}
#define DVS_UNKNOWN -1
```

Unknown error, notify developers.

### Macro DVS\_NONE

![][public]

```cpp theme={null}
#define DVS_NONE 0
```

No detected error has occurred.

### Macro DVS\_RANK\_NOT\_INITIALIZED

![][public]

```cpp theme={null}
#define DVS_RANK_NOT_INITIALIZED 100
```

Begin update or delete item called on unintialized rank, call begin/end init sequence.

### Macro DVS\_OTHER\_RANKS\_NOT\_INITIALIZED

![][public]

```cpp theme={null}
#define DVS_OTHER_RANKS_NOT_INITIALIZED 101
```

Other ranks on server have not yet called begin/end init sequence.

### Macro DVS\_RANK\_REINITIALIZING

![][public]

```cpp theme={null}
#define DVS_RANK_REINITIALIZING 102
```

Waiting for reinitializing to occur, other ranks may not have called it yet.

### Macro DVS\_RANK\_NOT\_REINITIALIZED

![][public]

```cpp theme={null}
#define DVS_RANK_NOT_REINITIALIZED 103
```

Other ranks have started reinitializing but this one did not, call begin/end init sequence.

### Macro DVS\_RANK\_ALREADY\_REINITIALIZED

![][public]

```cpp theme={null}
#define DVS_RANK_ALREADY_REINITIALIZED 104
```

Begin init already called but server has not finished reinitializing yet.

### Macro DVS\_REINITIALIZE\_WAITING\_MERGE

![][public]

```cpp theme={null}
#define DVS_REINITIALIZE_WAITING_MERGE 105
```

Waiting on merge of definitions to occur.

### Macro DVS\_DELETE\_BAD\_QUERY

![][public]

```cpp theme={null}
#define DVS_DELETE_BAD_QUERY 109
```

A bad filter has been given to the delete\_item call.

## Typedefs

### Typedef dvs\_ret

![][public]

```cpp theme={null}
typedef int32_t dvs_ret
```

Return value of methods, TODO.

**Return type**: int32\_t

## Source

```cpp theme={null}
/*  *************************************************************
 *   Copyright 2017-2025 ANSYS, Inc.
 *   All Rights Reserved.
 *
 *        Restricted Rights Legend
 *
 *   Use, duplication, or disclosure of this
 *   software and its documentation by the
 *   Government is subject to restrictions as
 *   set forth in subdivision [(b)(3)(ii)] of
 *   the Rights in Technical Data and Computer
 *   Software clause at 52.227-7013.
 *  *************************************************************
 */

#ifndef ___DVS_ERROR_CODES___
#define ___DVS_ERROR_CODES___

#include <stdint.h>


typedef int32_t dvs_ret;
//typedef enum dvs_error dvs_ret;

#define DVS_PARAM_NULL -100 
#define DVS_PARAM_INVALID_SIZE -101 
#define DVS_PARAM_OUT_OF_BOUNDS -102 
#define DVS_INVALID_ID -103 
#define DVS_PARAM_INVALID_VAR -104 
#define DVS_PARAM_INVALID_VAR_LOC -105 
#define DVS_PARAM_INVALID_OBJECT -106 
#define DVS_PARAM_INVALID_OBJECT_TYPE -107 
#define DVS_PARAM_INVALID_TIME -108 
#define DVS_PARAM_OBJECT_DATASET_MISMATCH -109 
#define DVS_PARAM_INVALID -110 
#define DVS_INVALID_NAME -111 
#define DVS_DUPLICATE_ELEM_BLOCK_TYPE -112 

#define DVS_TRANSPORT_NULL_INVALID_SERVER -150 
#define DVS_TRANSPORT_SERVICE_UNAVAILABLE -151 
#define DVS_TRANSPORT_SERVICE_FAILURE -152 

#define DVS_ID_INVALID -200 
#define DVS_ID_INVALID_TYPE -201 
#define DVS_ID_NO_VALID_SERVER -202 
#define DVS_ID_NO_VALID_SESSION -203 
#define DVS_ID_OUT_OF_IDS -204 

#define DVS_SERVER_START_FAILED -300 
#define DVS_SERVER_ALREADY_STARTED -301 
#define DVS_SERVER_NOT_STARTED -302 
#define DVS_SERVER_FAILED_INIT -303 
#define DVS_SERVER_FAILED_SYNC_RANKS -304 
#define DVS_SERVER_FAILED_DEFINITIONS_MERGE -305 
#define DVS_SERVER_FAILED_TIMELINE_SYNC -306 
#define DVS_SERVER_FAILED_READER_CREATE -307 
#define DVS_SERVER_WAIT_TIMEOUT -308 
#define DVS_SERVER_CACHE_NOT_ACCESSIBLE -309 
#define DVS_SERVER_QUERY_FAILED -310 
#define DVS_SERVER_TERMINATING 300 

#define DVS_CLIENT_INVALID_TRANSPORT -400 
#define DVS_CLIENT_WAIT_TIMEOUT -401 

#define DVS_DATASET_NAME_EMPTY -500 

#define DVS_NO_DATA -502 

#define DVS_METADATA_NO_HASH_OFFSET_TABLE -600 
#define DVS_METADATA_HASH_OFFSET_TABLE_BACKCOMPAT -601 

#define DVS_INVALID_STRUCTURED_DATA -700 
#define DVS_INVALID_ELEMENT_TYPE -701 
#define DVS_INVALID_MESH_TYPE -702 
#define DVS_INVALID_CONNECTIVITY_RANGE -703 
#define DVS_TYPE_MISMATCH -704 

#define DVS_VERSION_MISMATCH -800 
#define DVS_VERSION_UNKNOWN -801 

#define DVS_QUERY_INVALID_FILTER -900 
#define DVS_QUERY_INVALID_URI -901 

#define DVS_QUERY_HAS_CHILDREN -903 

#define DVS_HASH_NOT_FOUND -8 
#define DVS_METADATA_ERROR -7 
#define DVS_CACHE_EMPTY -6 
#define DVS_CACHE_MISSING_SERVERS -5 
#define DVS_INVALID_HASH -4 
#define DVS_DATA_FAILED_LOAD -3 
#define DVS_INVALID_CACHE -2 
#define DVS_UNKNOWN -1 
#define DVS_NONE 0 

#define DVS_RANK_NOT_INITIALIZED 100 
#define DVS_OTHER_RANKS_NOT_INITIALIZED 101 
#define DVS_RANK_REINITIALIZING 102 
#define DVS_RANK_NOT_REINITIALIZED 103 
#define DVS_RANK_ALREADY_REINITIALIZED 104 
#define DVS_REINITIALIZE_WAITING_MERGE 105 

#define DVS_DELETE_BAD_QUERY 109 

#endif //___DVS_ERROR_CODES___
```

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[protected]: https://img.shields.io/badge/-protected-yellow "protected"

[static]: https://img.shields.io/badge/-static-lightgrey "static"

[Python]: https://img.shields.io/badge/language-Python-blue "Python"

[private]: https://img.shields.io/badge/-private-red "private"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[Markdown]: https://img.shields.io/badge/language-Markdown-blue "Markdown"
