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

Exception handling #77

Merged
merged 20 commits into from
Jan 19, 2022
Merged

Exception handling #77

merged 20 commits into from
Jan 19, 2022

Conversation

jharmer95
Copy link
Owner

This will add exception handling as well as incorporate the changes made from the cleanup branch.

This should trigger a new version (0.7.1)

* Added `noexcept` where feasible
* Fixed narrow numeric literals in tests, resulting in bitsery overflow
* Fixed missing newline in `dispatch_gen.py`
* Moved functions/classes not in public API into `details` namespace
* Moved member functions to the most private scope possible
* Eliminated unnecessary/unused internal functions
* Added rvalue overload to `client` functions:
  * `send`
  * `call_func`
  * `call_header_func_impl`
* New exception types in `exceptions` namespace
* Functions will now try to fail early via exception
* `void` functions can now fail
* Exceptions can be serialized via a string and enum
* Tests added to verify the correct exceptions are being used
@jharmer95 jharmer95 added enhancement New feature or request api Involves a change to the API potentially breaking May break backwards compatibility testing Involves a change to the unit testing of the project labels Jan 19, 2022
@jharmer95 jharmer95 added this to the Release 1.0 milestone Jan 19, 2022
@jharmer95 jharmer95 self-assigned this Jan 19, 2022
Copy link
Owner Author

@jharmer95 jharmer95 left a comment

Choose a reason for hiding this comment

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

Ready for release

CMakeLists.txt Outdated Show resolved Hide resolved
include/rpc.hpp Outdated Show resolved Hide resolved
@jharmer95 jharmer95 merged commit 7a83063 into main Jan 19, 2022
@jharmer95 jharmer95 deleted the feature/exceptions branch January 19, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Involves a change to the API enhancement New feature or request potentially breaking May break backwards compatibility testing Involves a change to the unit testing of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant