zeroc-ice / ice

All-in-one solution for creating networked applications with RPC, pub/sub, server deployment, and more.
https://zeroc.com
GNU General Public License v2.0
2k stars 592 forks source link

Refactor local exceptions in MATLAB #2395

Closed bernardnormier closed 1 day ago

bernardnormier commented 2 days ago

This PR refactors local exceptions in MATLAB.

It takes advantage of constructor inheritance to reduce the amount of code.

I think the large exception inheritance hierarchy is unnatural in MATLAB, since you can't catch exception for a given type. However, we do have comprehensive tests for all these exceptions so some users could rely on this structure ... so I kept it.