Skip to content

Add specific GRPC errors mock #59

@eudelins-zama

Description

@eudelins-zama

Currently, then error method of the Then struct takes an HTTP StatusCode (and a message).

But I did not find any way to return custom GRPC error using GRPC Code instead. So currently, I don't think there is a way to mock AlreadyExists or ResourceExhausted GRPC errors for example.

It would be nice to add a grpc_error method to the Then struct or whatever to support this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions