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

Send meaningful io.grpc.Status.Code to gRPC clients [No. 2] #6088

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -137,7 +137,7 @@ else if (t instanceof bisq.core.api.exception.NotAvailableException)
return UNAVAILABLE.withDescription(description);

// If the above checks did not return an io.grpc.Status.Code, we map
// the native Java exception to an io.grpc.Status, usually defaulting to UNKNOWN.
// the native Java exception to an io.grpc.Status.
if (t instanceof IllegalArgumentException)
return INVALID_ARGUMENT.withDescription(description);
else if (t instanceof IllegalStateException)
Expand Down