Repository navigation
Conversation
asfernandes
reviewed
Jul 21, 2026
…nts, and clean up prototype boilerplate
Contributor
Author
|
Hi @asfernandes, I have updated the code to address all your feedback:
|
asfernandes
reviewed
Jul 29, 2026
…d native api exports
Contributor
Author
|
Hi @asfernandes, I have updated the PR to address your latest review feedback:
|
Owner
|
Two identical error-codes.ts? |
Contributor
Author
|
Removed the duplicate |
asfernandes
reviewed
Nov 21, 2026
Contributor
Author
|
Hi @asfernandes, I have updated the PR to address your review feedback:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
• Created and exported the FbError class in the main driver package: index.ts.
• It exposes gdsCodes , warnings , and messages arrays representing parsed elements of the Firebird status vector.
• C++ Addon: Implemented parseStatus and parseStatusVector helpers in fb-native.cpp to extract integer GDS codes, warnings, and messages directly from Firebird's IStatus* .
• Synchronous Errors: Updated rethrowException to attach those properties to errors thrown synchronously by the C++ layer.
• Asynchronous Promises: Updated the PromiseWorker in classes.h to retrieve status codes on the worker thread, and attach them as Napi Arrays and Strings to the rejected Node-API Error value on
the main event-loop thread.
• Native Driver ( node-firebird-driver-native ): Updated statusAction in client.ts to intercept native errors containing those properties, wrapping and re-throwing them as instances of FbError .
• Wire Driver ( node-firebird-driver-wire ): Uniffied exceptions by making the existing FirebirdWireError extend the new FbError and pass the parsed status vector elements to super(...) in
status.ts.
• Added checks to tests.ts asserting that the thrown exception is an instance of FbError and contains the expected GDS status code (e.g. 335544569 for isc_dsql_error ). All 76 tests in the
workspace pass successfully!