Versions in this module Expand all Collapse all v0 v0.3.0 Dec 23, 2025 Changes in this version + func GetStatus(err error) int + type Error struct + Cause error + Details interface{} + Message string + Status int + func New(status int, message string, args ...interface{}) *Error + func NewBadRequest(message string, args ...interface{}) *Error + func NewConflict(message string, args ...interface{}) *Error + func NewForbidden(message string, args ...interface{}) *Error + func NewInternalServerError(err error, message string, args ...interface{}) *Error + func NewNotFound(message string, args ...interface{}) *Error + func NewUnauthorized(message string, args ...interface{}) *Error + func Wrap(err error, status int, message string, args ...interface{}) *Error + func (e *Error) Error() string + func (e *Error) Unwrap() error + func (e *Error) WithDetails(details interface{}) *Error