apache / apache/arrow-adbc

[Java] Normalize exceptions to AdbcException subclasses

Open
#2,237 0 comments 0 reactions 0 assignees View on GitHub
Type: enhancement
Dominant language
C#
Stars
627
Forks
217
Avg merge
17h
Merged PRs (30d)
57

Description

### What feature or improvement would you like to see?

Although most Adbc methods throws `AdbcException`, there are several places in ADBC interfaces where methods throws `Exception` (notably for `close()` methods) or `IOException`. Similar to JDBC API, all exceptions should be normalized around `AdbcException` to make API consistent.

It would be an incompatible API change though. When updating methods from `Exception` to `AdbcException`, this would be a source incompatible change but a binary compatible one. However when changing from `IOException` to `AdbcException`, it would be a source and binary incompatible change.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.