Skip to content

test: report mock server errors as ResponseErrorException - #1637

Merged
rubenporras merged 1 commit into
eclipse-lsp4e:mainfrom
rubenporras:fix/mock-response-errors
Oct 28, 2026
Merged

rubenporras merged 1 commit into
eclipse-lsp4e:mainfrom
rubenporras:fix/mock-response-errors

Conversation

@rubenporras

Copy link
Copy Markdown
Contributor

lsp4j logs any other exception thrown by a request handler as a SEVERE 'Internal error', and this log reaches the log file of test excecution, creating unnecessary noise.

Use ResponseErrorException for the intentional failures so the test logs only show real problems.

lsp4j logs any other exception thrown by a request handler as a SEVERE
'Internal error', and this log reaches the log file of test excecution,
creating unnecessary noise.

Use ResponseErrorException for the intentional failures so the test logs
only show real problems.
@rubenporras
rubenporras merged commit 14bd1f2 into eclipse-lsp4e:main Oct 28, 2026
11 checks passed
@rubenporras
rubenporras deleted the fix/mock-response-errors branch October 28, 2026 09:31
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