Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPError ¶
HTTPError will respond in a standard way when err != nil. If err is nil, false is returned, true otherwise.
func IsLimitError ¶ added in v0.24.0
IsLimitError will determine if an error's cause is a limit.Error.
func MapDBError ¶
MapDBError will map known DB errors (like unique names) to a valiation error
func ScrubError ¶
ScrubError will replace an err with a generic one if it is not a validation error. The boolean value indicates if the error was scrubbed (replaced with a safe one).
Types ¶
type LimitError ¶ added in v0.24.0
LimitError represents an error caused by a configured system limit.
Click to show internal directories.
Click to hide internal directories.