Versions in this module Expand all Collapse all v0 v0.2.0 Jan 21, 2026 Changes in this version + func GetContext(err error) map[string]interface + func IsType(err error, errType ErrorType) bool + type ErrorType string + const ErrorTypeAuthentication + const ErrorTypeAuthorization + const ErrorTypeConfiguration + const ErrorTypeConflict + const ErrorTypeInternal + const ErrorTypeNetwork + const ErrorTypeNotFound + const ErrorTypeTimeout + const ErrorTypeUnknown + const ErrorTypeValidation + func GetType(err error) ErrorType + type S9sError struct + Cause error + Context map[string]interface{} + Message string + Stack []StackFrame + Type ErrorType + func Config(message string) *S9sError + func Configf(format string, args ...interface{}) *S9sError + func Forbidden(message string) *S9sError + func Internal(message string) *S9sError + func Internalf(format string, args ...interface{}) *S9sError + func Invalid(field, reason string) *S9sError + func Invalidf(format string, args ...interface{}) *S9sError + func Network(message string) *S9sError + func New(errType ErrorType, message string) *S9sError + func Newf(errType ErrorType, format string, args ...interface{}) *S9sError + func NotFound(resource string) *S9sError + func NotFoundf(format string, args ...interface{}) *S9sError + func Timeout(operation string) *S9sError + func Unauthorized(message string) *S9sError + func Wrap(err error, errType ErrorType, message string) *S9sError + func Wrapf(err error, errType ErrorType, format string, args ...interface{}) *S9sError + func (e *S9sError) Error() string + func (e *S9sError) Is(target error) bool + func (e *S9sError) Unwrap() error + func (e *S9sError) WithContext(key string, value interface{}) *S9sError + type StackFrame struct + File string + Function string + Line int