Skip to content

Use an exception to indicate validation errors#189

Merged
sophokles73 merged 1 commit intoeclipse-uprotocol:mainfrom
etas-contrib:replace_validationresult_with_exception
Sep 4, 2025
Merged

Use an exception to indicate validation errors#189
sophokles73 merged 1 commit intoeclipse-uprotocol:mainfrom
etas-contrib:replace_validationresult_with_exception

Conversation

@sophokles73
Copy link
Contributor

Replaced ValidationResult with a Java runtime exception that is being
thrown in case of validation errors. This is more in line with the
principles of exception handling in Java and allows for better error
propagation and usage of existing tooling around exceptions, e.g. in
unit tests.

Replaced ValidationResult with a Java runtime exception that is being
thrown in case of validation errors. This is more in line with the
principles of exception handling in Java and allows for better error
propagation and usage of existing tooling around exceptions, e.g. in
unit tests.
@sophokles73 sophokles73 added the enhancement New feature or request label Sep 3, 2025
@github-actions
Copy link

github-actions bot commented Sep 3, 2025

Code coverage report is ready! 📈

@sophokles73
Copy link
Contributor Author

@PLeVasseur would you mind taking a look?

Copy link

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Seems this is intended to use the more "native" way of signaling errors, exceptions, in Java.

@sophokles73 sophokles73 merged commit f202b04 into eclipse-uprotocol:main Sep 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants