Documentation ¶
Overview ¶
Package syserror handles "system errors".
A system error is an error that should never actually happen, and should be propogated to the user as a bug in the codebase. System errors are generally defensive-programming assertions that we want to check for in our codebase.
If a system error occurs, you may want to send a specialized help that says how to file a bug report.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Underlying error
}
Error is a system error.
func As ¶
As is a convenience function that returns err as an Error and true if err is an Error, and err and false otherwise.
Click to show internal directories.
Click to hide internal directories.