Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] Invalid method name: 'beginFateOperation' when creating a table

On 25/03/15 23:44, Emilio Lahr-Vivaz wrote:
However, in this particular case, I would think some type of runtime exception
would be appropriate - maybe a NullPointerException since the value was null or an
IllegalArgumentException since the feature type does not exist.

I'd rather use a checked exception (one that that must be thrown or caught by the calling method/function), since it does a better job at communicating behaviour to the developer.

In addition, I would avoid NPEs as much as possible, since they communicate only that a reference is used without being checked in the body of the method.

Regards,

Luca Morandini
Data Architect - AURIN project
Melbourne eResearch Group
Department of Computing and Information Systems
University of Melbourne
Tel. +61 03 903 58 380
Skype: lmorandini


Back to the top