Versions in this module Expand all Collapse all v1 v1.0.0 Sep 3, 2025 Changes in this version + type AppError struct + ActualErr error + CustomErr *CustomErr + ErrorCodes []string + func GetAppErr(ctx context.Context, err error, customErr *CustomErr, httpCode int, ...) *AppError + func (e *AppError) AddErrCode(errorCode string) *AppError + func (e *AppError) Error() string + func (e *AppError) GetData() interface{} + func (e *AppError) GetErr() error + func (e *AppError) GetErrCode() string + func (e *AppError) GetErrCodes() []string + func (e *AppError) GetHTTPCode() int + func (e *AppError) GetMsg() string + func (e *AppError) SetData(data interface{}) *AppError + func (e *AppError) SetErr(err error) error + func (e *AppError) SetErrCode(code string) *AppError + func (e *AppError) SetHTTPCode(httpCode int) *AppError + func (e *AppError) SetMsg(msg string) *AppError + type CustomErr struct + Code string + Message string + Retryable bool + func GetCustomErr(code, msg string, retryable bool) *CustomErr + type TraceMeta struct + Error []string + IdentifierMappings map[string]interface{} + Trace []string + func AddTraceLog(ctx context.Context, errorMsg string) *TraceMeta