Skip to content

Unknown internal exceptions are mapped differently when response is streamed #1943

@donce

Description

@donce

For Unary methods, if you throw an exception which is not SRE/SE (e.g. throw new NullPointerException()), it is wrapped to SRE Internal exception. This happens here: scalapb.grpc.Grpc.completeObserver

When you operate with ResponseObserver (e.g. server streaming method), and pass the same exception (e.g. responseObserver.onError(new NullPointerException())), you end up with Unknown SRE instead of Internal, because such exceptions are not mapped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions