Versions in this module Expand all Collapse all v1 v1.1.3 Sep 22, 2025 Changes in this version + func IsCode(err error, code Code) bool + type AppError struct + Cause error + Code Code + Fields map[string]interface{} + Message string + func Conflict(message string, cause error) *AppError + func Dependency(message string, cause error) *AppError + func Forbidden(message string, cause error) *AppError + func Internal(message string, cause error) *AppError + func InvalidInput(message string, cause error) *AppError + func New(code Code, message string) *AppError + func NotFound(message string, cause error) *AppError + func Timeout(message string, cause error) *AppError + func Unauthorized(message string, cause error) *AppError + func Unavailable(message string, cause error) *AppError + func Validation(message string, cause error) *AppError + func Wrap(err error, code Code, message string) *AppError + func (e *AppError) AddField(key string, value interface{}) *AppError + func (e *AppError) Error() string + func (e *AppError) Unwrap() error + type Code string + const CodeConflict + const CodeDependency + const CodeForbidden + const CodeInternal + const CodeInvalidInput + const CodeNotFound + const CodeTimeout + const CodeUnauthorized + const CodeUnavailable + const CodeValidation