[Liblas-devel] Throwing out_of_range exceptions on read
Howard Butler
hobu.inc at gmail.com
Mon Apr 28 22:56:10 EDT 2008
On Apr 28, 2008, at 9:34 PM, Mateusz Loskot wrote:
>
> Another point is that in most cases LASWriter throws if its internal
> state is invalid, and it does not make sense to continue calling
> writer.
If this is true, a client must do try ... catch to be robust
regardless. I agree the simple boolean has a cleaner form, but if
WritePoint is already expected to throw exceptions, we might as well
take advantage of it.
>
> But if a point is invalid, state of writer object is OK and we can
> safely continue using writer.
Maybe we need two validation methods, one boolean and one that throws.
More information about the Liblas-devel
mailing list