IErrorDetails

[ Interface ]

export interface IErrorDetails {
    code: TcHmi.Errors | number;
    domain?: string;
    message?: string;
    reason?: string;
    errors?: TcHmi.IErrorDetails[];
};

This interface enables a precise analysis of an error through a hierarchical structure. See also the function TcHmi.Log.buildMessage, which returns the error chain in formatted form.

Properties

Name

Type

Description

code

TcHmi.Errors | number

Numeric value referenced by a framework or server error.

domain [optional]

string

The name of the server or framework domain where the error occurred.

message [optional]

string

The text representation of the error

reason [optional]

string

Plain text description of the error

errors [optional]

TcHmi.IErrorDetails[]

A list of errors that led to this current error.

IErrorDetails 1:

Available from version 1.10.1018.48