tigerbeetle / tigerbeetle-java

TigerBeetle Java client
Apache License 2.0
2 stars 2 forks source link

Exceptions rework #2

Closed batiati closed 2 years ago

batiati commented 2 years ago

Java has 3 semantics for exceptions:

This PR removes a lot of exceptions wrongly declared on the "throws" block and assures that we are following the correct semantics in exceptions we throw in our public API.

batiati commented 2 years ago

Just pinging @eatonphil from here. Thanks!

eatonphil commented 2 years ago

It doesn't seem like the tests changed too much. Are the tests not covering the failure cases?

batiati commented 2 years ago

It doesn't seem like the tests changed too much. Are the tests not covering the failure cases?

Not yet, we have only the happy path covered by tests for now.

eatonphil commented 2 years ago

Got it. Also, do you plan to add Github Actions CI steps to run automated tests/formatting?

batiati commented 2 years ago

Yes, I have created a Maven project + GHA, it's going to be the next PR.

eatonphil commented 2 years ago

Ok! Looks good for now. Looking forward to having the CI set up to run tests and formatting and whatnot.