if errors.Is(err, context.DeadlineExceeded) || errors.Is(err, gocql.ErrTimeoutNoResponse) || errors.Is(err, gocql.ErrConnectionClosed) {
return &persistence.TimeoutError{Msg: fmt.Sprintf("operation %v encountered %v", operation, err.Error())}
errors.go
}
if errors.Is(err, gocql.ErrNotFound) {
return serviceerror.NewNotFoundf("operation %v encountered %v", operation, err.Error())