Skip to content

How to handle ice exceptions correctly? #1533

Answered by bernardnormier
free-wind-0 asked this question in Q&A
Discussion options

You must be logged in to vote

As @pepone wrote, you should only create a single Communicator per application.

In particular, if you catch an Ice exception and this exception is something your application can tolerate, just continue. You should not recreate your Communicator. And you should not close any connection manually in your code either. Ice takes care of opening/closing connections for you. Just keep going.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@free-wind-0
Comment options

@bernardnormier
Comment options

Answer selected by free-wind-0
@free-wind-0
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1530 on September 28, 2023 13:33.