How to "catch" export errors

Discussion created by thyandrecardoso on Jan 8, 2012
Latest reply on Jan 24, 2012 by thyandrecardoso
While having a export process automatized by a python script, it becomes necessary to deal with export errors.

I'm getting errors like these:
"The batch export is complete. For at least one shape a generation error occurred. Please refer to the .log file at the export location and check the corresponding shape settings. - [main]"

Is there any way to check if an error has occurred while exporting a shape's model? for example in the "finishModel" function?