3 ms·
I've done interfaces where centered around the kind of error that happened, which is typically standard across apps and translates well into status codes for ht
by cpuguy83 3y ago
I've done interfaces where centered around the kind of error that happened, which is typically standard across apps and translates well into status codes for http or grpc.
Eg "NotFound()" "InvalidParameter()" "Unknown()".
That said these could all just be sentinel errors with the normal unwrapping in the stdlib these days.