Catching cesium rendering errors and showing custom error message

Hi,

I need to show custom error message instead of Cesium’s error dialog whenever rendering error occurs. Is there any way to do this? I tried by adding listener to scene renderError event but it’s not working.

Thanks,

Gowtham.