You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "DomGarguilo (via GitHub)" <gi...@apache.org> on 2025/05/30 15:36:51 UTC

[I] Stop wrapping TableNotFoundException in TableOperations [accumulo]

DomGarguilo opened a new issue, #5602:
URL: https://github.com/apache/accumulo/issues/5602

   **Is your feature request related to a problem? Please describe.**
   Many `TableOperations` methods wrap `TableNotFoundException` in `AccumuloException`. It seems less confusing and safer to throw `TableNotFoundException` directly. This would force the calling code to properly handle the case where a table does not exist. Right now, its very easy to not know that this wrapping is happening and not properly account for it. Right now, there is a note in the javadoc for each method that wraps `TableNotFoundException` but, doing this is a lot less evident than throwing the exception directly (and also leads to problems updating and maintaining that note in the javadoc e.g., #5595)


-- 
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: notifications-unsubscribe@accumulo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org