rdblue commented on issue #6625:
URL: https://github.com/apache/iceberg/issues/6625#issuecomment-1399656418

   The reason why we don't use `checkNonNull` is that it throws 
`NullPointerException`, which mostly makes people think that something tried to 
dereference it. We use `checkArgument` so the reader gets the message "you 
passed the wrong thing" rather than "there's a null dereferenced somewhere in 
Iceberg". This distinction is minor since NPE is a subclass of 
`ArgumentException`.
   
   As I mentioned on #6474, the main problem with this was that we have a 
convention for error messages and this needlessly changed the error message to 
be inconsistent.


-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to