Thrameos / jpype

Thrameos personal sandbox for enhancements to jpype to send to originell.
Other
0 stars 1 forks source link

Better error reporting on overload #19

Closed Thrameos closed 6 years ago

Thrameos commented 7 years ago

When executing a complicated command while using a builder pattern such as

sg=sgb.add(bkg).includeWeightedSNR(sg1,10.0).miscalibrate(0, 0.01).create()

it is not clear which overloaded method is causing an error.

RuntimeError: No matching overloads found. at native\common\jp_method.cpp:117

At bare minimum the name of the method should appear in the error message. Although the native line number is useful for the developer it is likely meaningless for the user.

Thrameos commented 6 years ago

Fixed in current master and devel.