Skip to content

Replace ErrorType::{NotReady, ShuttingDown} by new ServerError variant - #1138

Merged
svix-jplatte merged 1 commit into
mainfrom
jplatte/error-refactor-again
Apr 27, 2026
Merged

Replace ErrorType::{NotReady, ShuttingDown} by new ServerError variant#1138
svix-jplatte merged 1 commit into
mainfrom
jplatte/error-refactor-again

Conversation

@svix-jplatte

Copy link
Copy Markdown
Member

On the SDK side, there are only going to be three "types" of errors as currently planned (see https://github.com/svix/diom-docs/pull/6), but I think server-side it makes sense to distinguish "expected" server errors (not_ready, shutting_down, also request_timeout once #1118 is merged) which we don't need to error!-log for and unexpected internal errors for which we want to error!, and also have origin information (the trace stuff).

Part of #1128.

@svix-jplatte
svix-jplatte requested a review from a team April 27, 2026 13:51
@svix-jplatte
svix-jplatte requested a review from a team as a code owner April 27, 2026 13:51
@github-actions

Copy link
Copy Markdown
TestsPassed ✅SkippedFailedTime ⏱
Diom CI JUnit309 ran309 passed0 skipped0 failed5m 56s 510ms
TestResultTime ⏱
No test annotations available

@github-actions

Copy link
Copy Markdown

Test Coverage: 80.10%

Artifact download

@svix-jplatte
svix-jplatte merged commit 045a323 into main Apr 27, 2026
40 checks passed
@svix-jplatte
svix-jplatte deleted the jplatte/error-refactor-again branch April 27, 2026 15:04
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.

2 participants