delta-io / delta

An open-source storage framework that enables building a Lakehouse architecture with compute engines including Spark, PrestoDB, Flink, Trino, and Hive and APIs
https://delta.io
Apache License 2.0
6.96k stars 1.58k forks source link

[Kernel] Refactor all user-facing exceptions to be "KernelExceptions" #3014

Closed allisonport-db closed 2 weeks ago

allisonport-db commented 2 weeks ago

Which Delta project/connector is this regarding?

Description

In order to provide a unified and user-friendly experience we are making all user-facing exceptions instances of one parent class KernelException. This PR also attempts to unify/improve some of these error messsages.

How was this patch tested?

Existing tests should suffice (updated to match the changes here).

Does this PR introduce any user-facing changes?

Yes, changes exception types + messages.