[vtk-developers] trouble with file writers and error handling
David Gobbi
david.gobbi at gmail.com
Fri Dec 5 14:38:04 EST 2014
On Fri, Dec 5, 2014 at 10:23 AM, Sean McBride <sean at rogue-research.com>
wrote:
>
>
> So is one expected to call GetErrorCode() after Write()?
>
Yes, but even that is probably insufficient for many of the writers
because not all writers set the ErrorCode.
The most robust way to check for errors is to add an observer that
catches ErrorEvent.
Should vtkWriter::Write() be changed to return something like:
>
> return (this->GetErrorCode == vtkErrorCode::NoError);
>
This sounds like a good idea.
- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20141205/193b3c11/attachment-0001.html>
More information about the vtk-developers
mailing list