Hacker News new | past | comments | ask | show | jobs | submit login

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.



That is right. gRPC and Google APIs share one simple error model, as defined by 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: