get_text_from_error_id
Tobias Müller, M. Eng edited this page 5 years ago

📜 Table of Contents


get_text_from_error_id

Definition
def get_text_from_error_id(self, error_id):
Description

The "get_text_from_error_id" method is used to get the error message from the "error_id".

Arguments

The "self" argument is pointing to the object, which calls the method.

The "error_id" argument is an integer value send from the Xtender-system.

Return Value

Type -> string

Example Code
>>> # create an object of the Xcom-API-Class
>>> Object = Xcom_API()
>>> 
>>> # create a variable with an Error_ID
>>> Error_ID =  0x0022
>>> 
>>> # call the Method 'get_text_from_error_id'
>>> Answer = Object.get_text_from_error_id(Error_ID)
>>> 
>>> # print Answer
>>> print(Answer)
    'OBJECT_ID_NOT_FOUND'

Hochschule Anhalt | Anhalt University of Applied Sciences | Department 6 EMW
Xcom-API

Tobias Müller, M. Eng.
📧 Tobias.Mueller@HS-Anhalt.de

© es-lab.de, 31.10.2017