You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`.With(string, any)`|`err.Context() map[string]any`| Supply a list of attributes key+value. Values of type `func() any {}` are accepted and evaluated lazily. |
258
258
|`.WithContext(context.Context, ...any)`|`err.Context() map[string]any`| Supply a list of values declared in context. Values of type `func() any {}` are accepted and evaluated lazily. |
259
-
|`.Code(string)`|`err.Code() string`| Set a code or slug that describes the error. Error messages are intented to be read by humans, but such code is expected to be read by machines and be transported over different services |
259
+
|`.Code(string)`|`err.Code() string`| Set a code or slug that describes the error. Error messages are intended to be read by humans, but such code is expected to be read by machines and be transported over different services |
260
260
|`.Public(string)`|`err.Public() string`| Set a message that is safe to show to an end user |
261
261
|`.Time(time.Time)`|`err.Time() time.Time`| Set the error time (default: `time.Now()`) |
262
262
|`.Since(time.Time)`|`err.Duration() time.Duration`| Set the error duration |
263
263
|`.Duration(time.Duration)`|`err.Duration() time.Duration`| Set the error duration |
264
264
|`.In(string)`|`err.Domain() string`| Set the feature category or domain |
265
265
|`.Tags(...string)`|`err.Tags() []string`| Add multiple tags, describing the feature returning an error |
266
+
||`err.HasTag(string) bool`| Check whether the error contains provided tag |
0 commit comments