Documentation
¶
Overview ¶
Package apierror keeps internal error text out of API responses.
Database, driver and provider errors can carry SQL, schema, constraint or host details. Handlers map the errors a client can act on to fixed messages and pass everything else to Internal (Huma operations) or Log (net/http handlers), which log the error and leave the client with a generic message.
Index ¶
Constants ¶
View Source
const InternalMessage = "internal error"
InternalMessage is the response text for an unexpected error.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.