Skip to content

refactor: add ErrorExt#27

Merged
tisonkun merged 3 commits into
mainfrom
error-bound
Jan 16, 2026
Merged

refactor: add ErrorExt#27
tisonkun merged 3 commits into
mainfrom
error-bound

Conversation

@tisonkun

@tisonkun tisonkun commented Jan 16, 2026

Copy link
Copy Markdown
Contributor

This refers to #20.

cc @Byron I'll appreciate it if you can summarize the gap between this patch and your requirment on an error lib so that we can see if it's desired to use exn directly in gix-error.

I've adjust the trait bound as std::error:Error + Send + Sync and restore the raise ErrorExt.

But I'm a bit hesitated about a type-erased top-level error and I'm considering how to make the (default) format impls more flexible. Initially, I'd prefer users to define their own display logics as in the custom-layout example, because I don't like error-stack's global hooks which make initialization and reasoing too hard.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun requested a review from andylokandy January 16, 2026 07:03
@tisonkun

Copy link
Copy Markdown
Contributor Author

Seems conflicts with 1ffa557. But the questions stay valid.

@tisonkun tisonkun closed this Jan 16, 2026
@tisonkun tisonkun reopened this Jan 16, 2026
Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun changed the title refactor: add Send and Sync to Error trait bound refactor: add ErrorExt Jan 16, 2026
@tisonkun tisonkun merged commit fef0f7d into main Jan 16, 2026
9 checks passed
@tisonkun tisonkun deleted the error-bound branch January 16, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant