errors icon indicating copy to clipboard operation
errors copied to clipboard

Drop-in replacement for the standard library errors package and github.com/pkg/errors

Results 10 errors issues
Sort by recently updated
recently updated
newest added

Code to reproduce ```go errWithDetail := errors.NewWithDetails( "errorMessage", "key", "value", ) errOther := errors.New("Something") errors.GetDetails(errWithDetail) // [key, value] -> detail exists errors.GetDetails(errors.Combine(errWithDetail, errOther) // [] -> prints empty slice //...

```go package main import ( "fmt" "emperror.dev/errors" "emperror.dev/errors/match" ) type ( myErrorKind string MyError struct { kind myErrorKind cause error } ) func (e MyError) Error() string { return fmt.Sprintf("%s:...

Add an error that allows an error to be marked with a tag/label. For example: ```go errors.Mark(err, "clientError") errors.IsMarked(err, "clientError") ```

enhancement