Skip to content
 
 

Repository files navigation

errors

github.com/zenact-ai/errors adds stack capture, structured attributes, typed-error detail rendering, and structured logging to Go error chains while preserving standard errors.Is, errors.As, and errors.Join behavior.

result, err := client.Fetch(ctx, id)
if err != nil {
	return errors.Wrap(
		err,
		errors.Stackf("fetch record"),
		errors.String("record_id", id),
	)
}

Typed errors can implement ErrorDetails() errors.Details to expose bounded, ordered diagnostic facts. Classification remains based on concrete error types and sentinels through errors.As and errors.Is; semantic detail strings are for observability only. See ERROR_DETAILS.md for the full contract.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages