Some exceptions in dhtmlxTree can be captured and processed.
function myErrorHandler(type, desc, erData){ alert(erData[0].status) } dhtmlxError.catchError("ALL",myErrorHandler);
The handler gets the following parameters: