Documentation
¶
Overview ¶
Package apperror defines the errors that may cross the HTTP boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromStorage ¶
FromStorage maps known PostgreSQL outcomes while hiding SQL details.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error contains only a safe client-facing code and message. The underlying cause is retained for errors.Is/As but is never returned in an HTTP response.
func Public ¶
Public returns a safe typed error for the HTTP responder, even if a caller accidentally passes a raw storage error.
func Unauthorized ¶
Click to show internal directories.
Click to hide internal directories.