4 ms·
Does HTTP have exceptions? No, it has error codes and error messages. gRPC is a protocol. Implementors can choose to use exceptions or not, but that choice is t
by helper 11y ago
Does HTTP have exceptions? No, it has error codes and error messages. gRPC is a protocol. Implementors can choose to use exceptions or not, but that choice is tangential to the actual protocol.
- wora 11y agoThat is right. gRPC and Google APIs share one simple error model, as defined by https://github.com/google/googleapis/blob/master/google/rpc/status.proto https://github.com/google/googleapis/blob/master/google/rpc/.... The goal is to make it easier for developers to handle errors. PS: I was the co-author of it.