rshura commented on code in PR #2185:
URL: https://github.com/apache/arrow-adbc/pull/2185#discussion_r1774161542
##########
go/adbc/adbc.go:
##########
@@ -130,6 +131,16 @@ type Error struct {
Details []ErrorDetail
}
+// AdbcError helper function returns an adbc.Error representation
+// of a given error
+func AdbcError(err error) (*Error, bool) {
+ var adbcErr Error
+ if errors.As(err, &adbcErr) {
+ return &adbcErr, true
+ }
+ return nil, false
+}
Review Comment:
Dropped the new function.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]