Bug SS-3568
1 vote

Try/OnError doesn't works as expected when is inside a line() context

Created by Davide on 10/6/2018 4:01 PM Last Updated by smath on 10/30/2018 5:57 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

original report: https://en.smath.info/forum/yaf_postst14915_try-catch-issue.aspx

 

more test cases attached here

    smath (Tuesday, October 30, 2018 5:57 PM) #

eval() function should be used in this case.

Try..catch works in given context, so if calculation is made symbolically and does not raise an error then there is nothing to catch. This can be proved by trying to calculate length(x) with symbolic optimization - no error.

This is by design.