karenfeng opened a new pull request #34123:
URL: https://github.com/apache/spark/pull/34123


   ### What changes were proposed in this pull request?
   
   Adds the `INTERNAL_ERROR` error class and the `isInternalError` API to 
`SparkThrowable`.
   Removes existing error classes that are internal-only and replaces them with 
`INTERNAL_ERROR`.
   
   ### Why are the changes needed?
   
   Makes it easy for end-users to diagnose whether an error is an internal 
error. If an end-user encounters an internal error, it should be reported 
immediately. This also limits the number of error classes, making it easy to 
audit. We do not need high-quality error messages for internal errors, as they 
should not be exposed to the end-user.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes; this changes the error class in master.
   
   ### How was this patch tested?
   
   Unit tests
   


-- 
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]

Reply via email to