CRDB Errors #46

Open
opened 2021-06-23 16:38:32 +00:00 by jeff · 0 comments
Owner

https://wiki.crdb.io/wiki/spaces/CRDB/pages/1676804870/Error+concepts+and+handling+in+CockroachDB

handle type assertion failures gracefully with an error, instead of letting Go generate a panic

avoid panics generally, unless in an init function or in a package that uses a disciplined panic-based error handling protocol (and converts panics to errors)

Only construct errors when needed.

Add hints, details, etc to strucutured logging.

Error text is not stable.

https://wiki.crdb.io/wiki/spaces/CRDB/pages/1676804870/Error+concepts+and+handling+in+CockroachDB handle type assertion failures gracefully with an error, instead of letting Go generate a panic avoid panics generally, unless in an init function or in a package that uses a disciplined panic-based error handling protocol (and converts panics to errors) Only construct errors when needed. Add hints, details, etc to strucutured logging. Error text is not stable.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: simplesystems/go-resources#46
No description provided.