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

Docs: Improves the module docs for error statuses. #314

Merged
merged 13 commits into from Jun 8, 2023

Conversation

hackvan
Copy link
Contributor

@hackvan hackvan commented May 30, 2023

  • Adds a markdown table to detail each code status and its related message.
  • Adds is_rpc_error/2 guard clause to check if it's an RPCError struct.
  • Add GRPC.Status and GRPC.RPCError unit tests

Closes #170

Adds a markdown table to detail each code status and its related message.

Closes elixir-grpc#170
lib/grpc/status.ex Outdated Show resolved Hide resolved
@hackvan hackvan marked this pull request as ready for review May 30, 2023 17:53
lib/grpc/error.ex Outdated Show resolved Hide resolved
lib/grpc/error.ex Outdated Show resolved Hide resolved
lib/grpc/error.ex Outdated Show resolved Hide resolved
lib/grpc/status.ex Outdated Show resolved Hide resolved
lib/grpc/error.ex Outdated Show resolved Hide resolved
lib/grpc/status.ex Outdated Show resolved Hide resolved
lib/grpc/status.ex Outdated Show resolved Hide resolved
lib/grpc/status.ex Outdated Show resolved Hide resolved
lib/grpc/status.ex Outdated Show resolved Hide resolved
lib/grpc/error.ex Outdated Show resolved Hide resolved
lib/grpc/error.ex Outdated Show resolved Hide resolved
Copy link
Contributor

@polvalente polvalente left a comment

Choose a reason for hiding this comment

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

PR looks great overall! I just suggested some minor changes and then we can merge!

hackvan and others added 5 commits May 31, 2023 11:58
* Adds examples about `is_rpc_error/2` clause in `GRPC.RPCError` module doc.
* Improves @SPEC with variable names.
*  Renames error_test.exs to rpc_error_test.exs file.
* Fixes markdown table syntax in `GRPC.Status` module doc.
… error message using a common factory function.
@polvalente polvalente merged commit 435bfd7 into elixir-grpc:master Jun 8, 2023
19 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.

Better error handling
3 participants