Errors

[ Enumeration ]

export enum Errors {
    NONE = 0,
    ERROR = 1,
    E_PARAMETER_INVALID = 2,
    E_TIMEOUT = 3,
    E_EXCEPTION = 4,
    E_INVALID = 5,
    E_NOT_UNIQUE = 6,

    E_NOT_SUPPORTED = 100,
    E_NOT_ALLOWED = 110,
    E_UNKNOWN = 115,
    E_UNKNOWN_TYPE = 120,
    E_KEY_NOT_FOUND = 130,
    E_TYPE_INVALID = 150,
    E_VALUE_INVALID = 160,
    E_REGISTRATION_MISSING = 180,
    E_REGISTRATION_ERROR = 190,
    E_MODULE_MISSING = 200,
    E_MODULE_ERROR = 210,

    E_WEBSOCKET_NOT_READY = 1000,
    E_WEBSOCKET_NOT_SUPPORTED = 1404,
    E_WEBSOCKET_OPEN_SERVER_LICENSE_CHECK_FAILED = 1500,
    E_WEBSOCKET_OPEN_SERVER_LICENSE_MISSING = 1501,
    E_WEBSOCKET_OPEN_SERVER_NO_ACCESS = 1502,

    E_SYMBOL_STATE_INVALID = 2000,
    E_SYMBOL_VALUE_INVALID = 2001,
    E_SYMBOL_RESOLVE_SCHEMA = 2002,
    E_SYMBOL_READONLY = 2003,
    E_SYMBOL_UNKNOWN = 2010,
    E_SYMBOL_INVALID_DATA_PROVIDER_ENTRY = 2020,
    E_SYMBOL_INVALID_PATH = 2030,
    E_SYMBOL_SUBSYMBOL_ERROR = 2040,
    E_SYMBOL_OBJECT_RESOLVE = 2050,
    E_SYMBOL_UNKNOWN_ATTRIBUTE = 2100,

    E_SERVER_RESPONSE_ERROR = 3000,
    E_SERVER_COMMAND_ERROR = 3005,
    E_SERVER_INVALID_RESPONSE = 3010,
    E_SERVER_COMMANDS_MISSING = 3015,
    E_SERVER_COMMAND_MISSING = 3016,
    E_SERVER_READVALUE_MISSING = 3020,
    E_SERVER_WRITEVALUE_MISSING = 3025,
    E_SERVER_RESPONSE_MISSING = 3030,
    E_SERVER_DOMAIN_UNKNOWN = 3100

    E_FUNCTION_MISSING_FUNCTION_REFERENCE = 4000,
    E_FUNCTION_MISSING_FUNCTION_DESCRIPTION = 4005,
    E_FUNCTION_INVALID_CONFIGURATION = 4010,
    E_FUNCTION_EXCEPTION = 4020,
    E_FUNCTION_UNKNOWN = 4030,
    E_FUNCTION_RESTPARAMETER_DEFINITION_MISSING = 4040,
    E_FUNCTION_RESOLVING_PARAMETER_FAILED = 4050,
    E_FUNCTION_EXPRESSION_PARSER_ERROR = 4100,
    E_FUNCTION_EXPRESSION_EXCEPTION = 4120,

    E_TRIGGER_ACTION_EXCEPTION = 5050,
    E_TRIGGER_JAVASCRIPT_EVAL_EXCEPTION = 5055,
    E_TRIGGER_FUNCTION_EXPRESSION_EXCEPTION = 5060,
    E_TRIGGER_RESOLVE_CONDITION_EXPRESSION_EXCEPTION = 5065,
    E_TRIGGER_CONDITION_INVALID = 5200,

    E_CONTROL_INSTANCE_NOT_FOUND = 6000,
    E_CONTROL_INVALID_CONFIGURATION = 6001,
    E_CONTROL_ATTRIBUTE_NOT_FOUND = 6005,
    E_CONTROL_ATTRIBUTE_INVALID_CONFIGURATION = 6010,

    E_SCHEMA_INVALID = 7000,
    E_SCHEMA_INVALID_PATH = 7010,
    E_SCHEMA_INVALID_REF_ID = 7020,
    E_SCHEMA_UNKNOWN_FILE = 7030,
    E_SCHEMA_UNKNOWN_DEFINITION = 7040,
    E_SCHEMA_NOT_RESOLVED = 7050,

    E_PACKAGE = 8000,
}

The names of the enumeration exist at runtime. For example, you can (and should) use TcHmi.Errors.NONE directly in a comparison.

Values

Name

Value

Description

NONE

Available from version 1.8

0

No error

ERROR

Available from version 1.8

1

Unspecific error

E_PARAMETER_INVALID

Available from version 1.10

2

A parameter is invalid.

E_TIMEOUT

Available from version 1.10

3

An action has exceeded the maximum execution time.

E_EXCEPTION

Available from version 1.10.1018.48

4

An exception has occurred.

E_INVALID

Available from version 1.10.1018.48

5

Invalid

E_NOT_UNIQUE

Available from version 1.12

6

Not unique

 

 

 

E_NOT_SUPPORTED

Available from version 1.8

100

An operation is not supported.

E_NOT_ALLOWED

Available from version 1.8

110

The current user does not have the rights for an operation.

E_UNKNOWN

Available from version 1.10

115

Something is unknown.

E_UNKNOWN_TYPE

Available from version 1.10

120

Unknown data type

E_KEY_NOT_FOUND

Available from version 1.10

130

Entry could not be found in dictionary/map.

E_TYPE_INVALID

Available from version 1.10.1018.48

150

Invalid data types

E_VALUE_INVALID

Available from version 1.10.1018.48

160

Invalid value

E_REGISTRATION_MISSING

Available from version 1.12

180

Package module registration is missing.
Control or function block is not included in the HTML document, or the registered name does not match.

E_REGISTRATION_ERROR

Available from version 1.12

190

Error in the package module registration.

E_MODULE_MISSING

Available from version 1.12

200

Package module missing

E_MODULE_ERROR

Available from version 1.12

210

Package module error

 

 

 

E_WEBSOCKET_NOT_READY

Available from version 1.8

1000

The WebSocket connection to the server is not yet fully established.

E_WEBSOCKET_ABNORMAL_SHUTDOWN

Available from version 1.8

1006

The WebSocket connection to the server could not be established.

E_WEBSOCKET_NOT_SUPPORTED

Available from version 1.8

1404

The browser does not support WebSockets.

E_WEBSOCKET_OPEN_SERVER_LICENSE_CHECK_FAILED

Available from version 1.8

1500

The license check could not be completed successfully.

E_WEBSOCKET_OPEN_SERVER_LICENSE_MISSING

Available from version 1.8

1501

The server is currently not licensed.

E_WEBSOCKET_OPEN_SERVER_NO_ACCESS

Available from version 1.8

1502

The current user does not have the authorization to establish a WebSocket connection.

 

 

 

E_SYMBOL_STATE_INVALID

Available from version 1.8

2000

The symbol has an invalid status.

E_SYMBOL_VALUE_INVALID

Available from version 1.8

2001

The symbol has an invalid value.

E_SYMBOL_RESOLVE_SCHEMA

Available from version 1.10

2002

Schema could not be resolved for the symbol.

E_SYMBOL_READONLY

Available from version 1.8

2003

No write access to the symbol is allowed.

E_SYMBOL_UNKNOWN

Available from version 1.10.1018.48

2010

Symbol is unknown.

E_SYMBOL_INVALID_DATA_PROVIDER_ENTRY

Available from version 1.8

2020

The symbol is not known in the corresponding DataProvider.

E_SYMBOL_UNKNOWN_ATTRIBUTES

Available from version 1.12

2100

Associated attribute cannot be determined.

Can occur with symbols that refer to control attributes if the specified attribute does not exist.

 

 

 

E_SERVER_RESPONSE_ERROR

Available from version 1.10

3000

The server has responded with an error object at response level.

E_SERVER_COMMAND_ERROR

Available from version 1.10

3005

The server has responded with an error object at command level.

E_SERVER_INVALID_RESPONSE

Available from version 1.10

3010

Invalid response object.

E_SERVER_COMMANDS_MISSING

Available from version 1.10

3015

Server response object contains no commands property.

E_SERVER_COMMAND_MISSING

Available from version 1.10

3016

An expected command object is missing in the list of commands in the server response.

E_SERVER_READVALUE_MISSING

Available from version 1.10

3020

A readValue property is expected, but the command object does not contain one.

E_SERVER_WRITEVALUE_MISSING

Available from version 1.10

3025

A writeValue property is expected, but the command object does not contain one.

E_SERVER_RESPONSE_MISSING

Available from version 1.10

3030

Missing response object.

E_SERVER_DOMAIN_UNKNOWN

Available from version 1.12

3100

Domain unknown.

 

 

 

E_FUNCTION_MISSING_FUNCTION_REFERENCE

Available from version 1.10

4000

Reference to the function implementation is missing.

E_FUNCTION_MISSING_FUNCTION_DESCRIPTION

Available from version 1.10

4005

The description of a function is missing.

E_FUNCTION_INVALID_CONFIGURATION

Available from version 1.10

4010

The configuration of a function is incorrect.

E_FUNCTION_EXCEPTION

Available from version 1.10

4020

An error occurred when a function was executed.

E_FUNCTION_RESTPARAMETER_DEFINITION_MISSING

Available from version 1.10.1018.48

4040

Expected residual parameter definition missing.

E_FUNCTION_RESOLVING_PARAMETER_FAILED

Available from version 1.12

4050

Function parameter could not be resolved.

E_FUNCTION_EXPRESSION_PARSER_ERROR

Available from version 1.10

4100

An error occurred while parsing a function expression.

E_FUNCTION_EXPRESSION_EXCEPTION

Available from version 1.10

4120

An error occurred while resolving a function expression.

 

 

 

E_TRIGGER_ACTION_EXCEPTION

Available from version 1.10

5050

An error occurred while resolving a trigger action.

E_TRIGGER_JAVASCRIPT_EVAL_EXCEPTION

Available from version 1.10

5055

An error occurred while resolving a JavaScript block in a trigger.

E_TRIGGER_FUNCTION_EXPRESSION_EXCEPTION

Available from version 1.10

5060

An error occurred while resolving a function expression in a trigger.

E_TRIGGER_RESOLVE_CONDITION_EXPRESSION_EXCEPTION

Available from version 1.12

5065

An error occurred while resolving a condition in a trigger.

E_TRIGGER_CONDITION_INVALID

Available from version 1.12

5200

The defined condition is invalid.

 

 

 

E_CONTROL_INSTANCE_NOT_FOUND

Available from version 1.10

6000

Control could not be found.

E_CONTROL_INVALID_CONFIGURATION

Available from version 1.10.1018.48

6001

Invalid control configuration.

E_CONTROL_ATTRIBUTE_NOT_FOUND

Available from version 1.10

6005

Control attribute could not be found.

E_CONTROL_ATTRIBUTE_INVALID_CONFIGURATION

Available from version 1.10.1018.48

6010

Invalid control attribute configuration

 

 

 

E_SCHEMA_INVALID

Available from version 1.10

7000

Schema is invalid.

E_SCHEMA_INVALID_PATH

Available from version 1.10

7010

Schema path is invalid.

E_SCHEMA_INVALID_REF_ID

Available from version 1.12

7020

Schema reference is invalid

E_SCHEMA_UNKNOWN_FILE

Available from version 1.12

7030

Schema file is unknown.

E_SCHEMA_UNKNOWN_DEFINITION

Available from version 1.12

7040

Schema definition is unknown.

E_SCHEMA_NOT_RESOLVED

Available from version 1.12

7050

Schema could not be resolved.

 

 

 

E_PACKAGE

Available from version 1.12

8000

General package error

Errors 1:

Available from 1.8