Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #224: Handle exceptions in server handlers #225

Merged
merged 1 commit into from
Jul 28, 2017
Merged

Conversation

eile
Copy link
Contributor

@eile eile commented Jul 28, 2017

No description provided.

@eile
Copy link
Contributor Author

eile commented Jul 28, 2017

Only the last commit is relevant. Will rebase once #219 is merged.

_send(reply.second.ptr.get(), reply.second.size, 0);
}
}
catch (...) // handler had exception
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

catch std::exception to extract and reply the what() before (...) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we'll need to define error codes (e.g. special reply IDs) for the Client. I would vote for doing this when we have a use case.

@eile eile merged commit 31430fa into HBPVIS:master Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants