Versions in this module Expand all Collapse all v0 v0.0.12 Jul 31, 2025 v0.0.11 Jul 31, 2025 Changes in this version + func As(err error, target any) bool + func Is(err, target error) bool + func IsBadRequest(err error) bool + func IsForbidden(err error) bool + func IsInternalServerError(err error) bool + func IsNotFound(err error) bool + func IsRequestError(err error) bool + func IsUnauthorized(err error) bool + func New(message string) error + func Unwrap(err error) error + type BadRequest struct + Message string + func NewBadRequest(message string, args ...any) *BadRequest + func (b *BadRequest) Error() string + type Forbidden struct + Message string + func NewForbidden(message string, args ...any) *Forbidden + func (f *Forbidden) Error() string + type InternalServerError struct + Message string + func NewInternalServerError(message string, args ...any) *InternalServerError + func (i *InternalServerError) Error() string + type NotFound struct + Message string + func NewNotFound(message string, args ...any) *NotFound + func (n *NotFound) Error() string + type RequestError struct + func NewRequestError(err error) *RequestError + func NewRequestErrorf(format string, args ...any) *RequestError + func (r *RequestError) Error() string + func (r *RequestError) RawURL() string + func (r *RequestError) StatusCode() int + func (r *RequestError) Unwrap() error + func (r *RequestError) WithRawURL(rawURL string) *RequestError + func (r *RequestError) WithStatusCode(statusCode int) *RequestError + type Unauthorized struct + Message string + func NewUnauthorized(message string, args ...any) *Unauthorized + func (u *Unauthorized) Error() string