Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
MXS-4783: Allow exceptions from all API functions
The clientReply and handleError API functions can now also throw exceptions. If clientReply throws an exception, the session will be closed; this is the same as returning false would do. The return value in clientReply is largely useless as routing replies doesn't seem to have any error conditions in the current codebase. If handleError throws an exception, it is propagated upwards to the parent component. In case of a single-level service, this is the MXS_SESSION which will simply kill the session. Documented the exception behaviors of all API functions into the relevant locations and added extra comments to clarify why calls to mxs::Component::handleError cannot throw but calls to mxs::Routable::handleError may throw.
- Loading branch information
Showing
5 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters