Whops. We found some errors

We are making some error pages etc and trying to break some code to get them and it seems try/catch does not work like it is suposed to do:

I think the catch is working properly. The error you get is from the re-throw in the catch clause.
The exceptions thrown inside the catch are not captured, unless you add another try in there.

But in last instance for throws, we shouldn’t get the error page instead of this? xD

Yes, you should get the error page if there is an error script in an app configured on the site.
I tried your example and I get the error page of my app.

Is the URL of the service in the context of a site that has an error script?
What is the full URL in this example?

It could also be that there is an error in the error.js.

1 Like