Impossible To Catch Fusion Charts Exceptions

Recommended Posts

We use FusionCharts in Ajax application which replaces contents of some element with HTML which has FusionChart in it.

The issue is that if FusionChart won't finish rendering and HTML will be replaced with another HTML which has FusionChart, it will throw an exception.


Unfortunately this exception is impossible to catch with try/catch block because in raiseEWEvent exception it is thrown in another context because of:  


// Throw error in a separate scope so that the execution of this script
// is not blocked. Do this only when debugMode is enabled

window.setTimeout(function () {

                throw err;
            }, 0);
Also comment is a bit misleading because debug mode is disabled in my case, but exception is still thrown.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now