Skip to content

[Feature] onError in Streaming Mode Does Not Support Returning Custom Exceptions #14415

Open
@nikbobo

Description

@nikbobo

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Apache Dubbo Component

Java SDK (apache/dubbo)

Descriptions

It is expected that the onError method of StreamObserver can pass through custom exceptions to the Consumer. Currently, the onError method in ServerCallToObserverAdapter is as follows:

public void onError(Throwable throwable) {
    final TriRpcStatus status = TriRpcStatus.getStatus(throwable);
    onCompleted(status);
}

This ultimately returns a StatusRpcException.

Related issues

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions