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

[coro_rpc][breakchange] enhance error handling #538

Merged
merged 4 commits into from
Dec 22, 2023

Conversation

poor-circle
Copy link
Collaborator

@poor-circle poor-circle commented Dec 22, 2023

Why

What is changing

  1. use enum class coro_rpc::errc : uint8_t instead of std::errc for cross-platform.
  2. add support for user set error by coro_rpc::context.
  3. add support for user-defined framework error code.(It should between 100-255)

Example

void hello(coro_rpc::context<void> ctx) {
  ctx.response_error(coro_rpc::errc::io_error,"This is io error.");
}

@qicosmos qicosmos merged commit 06cebf1 into alibaba:main Dec 22, 2023
30 checks passed
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.

2 participants