itholic opened a new pull request, #45457: URL: https://github.com/apache/spark/pull/45457
### What changes were proposed in this pull request? This PR proposes to introduce `_LEGACY_ERROR_UNKNOWN` for default error class when error class is not defined. ### Why are the changes needed? In Spark, when an `errorClass` is not explicitly defined for an exception, the method `getErrorClass` returns null so far. This behavior can lead to ambiguity and makes debugging more challenging by not providing a clear indication that the error class was not set. ### Does this PR introduce _any_ user-facing change? No API changes, but the user-facing error message will contain `_LEGACY_ERROR_UNKNOWN` when error class is not specified. ### How was this patch tested? The existing CI should pass. ### Was this patch authored or co-authored using generative AI tooling? No -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
