Versions in this module Expand all Collapse all v1 v1.0.1 Dec 18, 2025 Changes in this version + func As(err error, target interface{}) bool + func Cause(err error) error + func Is(err error, errType ErrorType) bool + func New(errType ErrorType, message string) error + func Newf(errType ErrorType, format string, args ...interface{}) error + func RootCause(err error) error + func Wrap(err error, errType ErrorType, message string) error + func Wrapf(err error, errType ErrorType, format string, args ...interface{}) error + type AppError struct + Cause error + Message string + Type ErrorType + func (e *AppError) Error() string + func (e *AppError) Unwrap() error + type ErrorType string + const Conflict + const ExecutionFailed + const Forbidden + const Internal + const InvalidInput + const NotFound + const System + const Timeout + const Unauthorized + const Unavailable + const Unknown + func GetType(err error) ErrorType