errorEx

[ Funktion ]

function error(
    message: string | any,
    ...optionalParameters: any[]
): void;

Issues an error message on the browser console if the constant TCHMI_CONSOLE_LOG_LEVEL is greater than or equal to 1.

Parameter

Name

Type

Description

message

string, any

The message text that is displayed in the browser console.

optionalParameters [ rest of parameters ]

any[]

Additional parameters that are passed to console.error.

Return value

Type

Description

void

No return value

errorEx 1:

Available from version 1.12

Sample - JavaScript

let variable = {complex: true, easy: 'debugging'};
TcHmi.Log.errorEx('My error text for variable:', variable);