Archived
This forum has been archived. Please start a new discussion on GitHub.
General Slice Exception question
in Help Center
In a java application library, I have an existing exception hierarchy. In the slice file, I would like to specify an exception to be thrown by an Ice server developed using that application library. What's the suggested method to unify the slice generated exception(s) with those used in the application? Does my server need to catch all exceptions and rethrow exceptions specified in the slice file?
0
Comments
-
Generally its a good idea to provide some layering through the slice interfaces. If you do not you just end up mirroring the entire java API which is a great way to have something that is very slow and has all sorts of interesting life cycle issues.0