Skip to content

test(QueryResult): remove redundant QueryResultFailure - #15

Merged
adsharma merged 1 commit into
mainfrom
test/remove-redundant-queryresult-failure
Aug 11, 2026
Merged

test(QueryResult): remove redundant QueryResultFailure#15
adsharma merged 1 commit into
mainfrom
test/remove-redundant-queryresult-failure

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

PR #789 in ladybug/ladybug wraps every C API entry point with LBUG_C_API_GUARD_BEGIN/END, catching C++ exceptions at the C ABI boundary and surfacing them as a non-success QueryResult instead of letting them propagate across the JNI boundary. Connection.query() no longer throws on binder errors; the only way to observe them is via QueryResult.isSuccess() and QueryResult.getErrorMessage().

QueryResultFailure was written for the old throwing contract and broke under the new one. QueryResultGetErrorMessage in the same file already asserts the failed-result contract on the same query (MATCH (a:personnnn) RETURN COUNT(*)) with the same expected message (Binder exception: Table personnnn does not exist.), so the duplicate can go.

Verification

  • ladybug-java CI on the same Java code passes (see run 31460534558)
  • The failing Build and Deploy run on the parent repo (31384580131) was triggered by this same Connection.query() contract change
  • This is a pure test deletion in the submodule; no native or JNI changes needed

PR #789 in ladybug/ladybug wraps every C API entry point with
LBUG_C_API_GUARD_BEGIN/END, catching C++ exceptions at the C ABI
boundary and surfacing them as a non-success QueryResult instead of
letting them propagate. Connection.query() no longer throws on binder
errors; the only way to observe them is via QueryResult.isSuccess()
and QueryResult.getErrorMessage().

QueryResultFailure was written for the old throwing contract and
broke under the new one. QueryResultGetErrorMessage in the same file
already asserts the failed-result contract (same query, same expected
message), so the duplicate can go.
@adsharma
adsharma merged commit f2fb39f into main Aug 11, 2026
3 checks passed
@adsharma
adsharma deleted the test/remove-redundant-queryresult-failure branch August 11, 2026 05:18
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