Hi,
In server side how can I implemante exceptions/errors handling in order to return response with associated return code (as described here) and a custom error message?
In java-grpc we can have
responseBuilder.setResponseCode(400).setMessage("Service Failed and so and so ...");
return responseBuilder.build();
But in akka-grpc I found that I can throws an exception
throw new GrpcServiceException(Status.FAILED_PRECONDITION)
I’m not sure it’s the right way.
Please, any idea or example how can I do it ?
Tks