Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ptman
on Dec 19, 2024
|
parent
|
context
|
favorite
| on:
How we centralized and structured error handling i...
I'm still just growing organically. Constant errors are useful for sentinel values
https://dave.cheney.net/2016/04/07/constant-errors
. RFC9457
https://datatracker.ietf.org/doc/html/rfc9457
is useful for REST (JSON) APIs. pkg/errors is nice for stack traces. I define error structs with field to pass structured data instead of trying to parse strings.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: