Versions in this module Expand all Collapse all v0 v0.0.1 Dec 28, 2025 Changes in this version + func FormatError(err error, includeStack bool) string + func IsCode(err error, code ErrorCode) bool + func IsType(err error, errType ErrorType) bool + func NewWithType(errType ErrorType, code ErrorCode, message string) error + func StackTrace(err error) []string + func WithStack(err error) error + func Wrap(err error, message string) error + func WrapWithType(err error, errType ErrorType, code ErrorCode, message string) error + func Wrapf(err error, format string, args ...interface{}) error + type ErrorCode int + const ErrorCodeForbidden + const ErrorCodeInternal + const ErrorCodeInvalidInput + const ErrorCodeNotFound + const ErrorCodeTimeout + const ErrorCodeUnauthorized + const ErrorCodeUnknown + func GetCode(err error) ErrorCode + type ErrorType string + const ErrorTypeInternal + const ErrorTypeNetwork + const ErrorTypeNotFound + const ErrorTypePermission + const ErrorTypeTimeout + const ErrorTypeUnknown + const ErrorTypeValidation + func GetType(err error) ErrorType + type WrappedError struct + Code ErrorCode + Err error + Message string + Stack []string + Type ErrorType + func (e *WrappedError) Error() string + func (e *WrappedError) Unwrap() error