Exceptions

When an error occurs, File Content Extraction can throw an exception.

The Filter Java API has a KeyViewException class for problems that can occur specifically with File Content Extraction. KeyViewException is derived from java.lang.Exception. A KeyViewException has a getErrorCode method - which returns an int that corresponds to an error code defined in the C API.

Your application code can handle these exceptions. For example if you are processing a file and File Content Extraction throws a KeyViewException, you might skip the file or to add it to a list of files that could not be processed.