package
0.0.0-20241223214030-968d722126d0
Repository: https://github.com/speakeasy-api/rest-template-go.git
Documentation: pkg.go.dev

# Functions

As just wraps errors.As as we don't want to alias the errors package everywhere to use it.
Is just wraps errors.Is as we don't want to alias the errors package everywhere to use it.
New just wraps errors.New as we don't want to alias the errors package everywhere to use it.

# Constants

ErrInvalidRequest is returned when either the parameters or the request body is invalid.
ErrNotFound is returned when the requested resource is not found.
ErrSeperator is used to determine the boundaries of the errors in the hierarchy.
ErrUnknown is returned when an unexpected error occurs.
ErrValidation is returned when the parameters don't pass validation.

# Type aliases

Error allows errors to be defined as const errors preventing modification and allowing them to be evaluated against wrapped errors.