tree_1.catchError("LoadXML" tree_1.catchError"DataStructure"

Hello, I need a clarification because when I try to catch an error with the following code I get an error
thanks

var dhtmlx = {};
window.onload=function(){

main();

}
function main(){
var dhw = “…/…/…/libp/dhtmlxWindows/codebase/imgs/”;

var windows = new dhtmlXWindows();
windows.setImagePath(dhw);
var window_1 = windows.createWindow(‘window_1’, 0, 0, 1024, 900);

var tree_1 = window_1.attachTree();
tree_1.setIconsPath(../../../libp/codebase/imgs/');
    
     tree_1.catchError("LoadXML", my_error_handler);
     tree_1.catchError("DataStructure", my_error_handler);    
    
tree_1.loadXML('../xml/tree.xml');

tree_1.attachEvent('onDblClick', function(id){
	alert('onDblClick '+id);
});

}

function my_error_handler(type, name, data){
if(type==“LoadXML”)
alert(“My error handler \n”+name+“\n Status:”+data[0].status);
}
//----------------------------------------------
Javascript Error
The next error ocured :
tree_1.catchError is not a function in localhost:8084/zdhtmlp/js/treror.js at line 22
If you think that error can be caused by dhtmlxtree press the ‘Generate report’ button and send generated report to

Here is a description of the catchError usage:
docs.dhtmlx.com/doku.php?id=dhtm … handling&s[]=catchError

The right approach is
dhtmlxError.catchError(“ALL”,myErrorHandler);
not tree_1: catchError is the dhtmlxError method