←Select platform

JobErrorMode Property

Summary

Indicates whether to abort or try to continue running jobs when an error occurs.

Syntax

C#
VB
Java
C++
public DocumentConverterJobErrorMode JobErrorMode { get; set; } 
Public Property JobErrorMode() As DocumentConverterJobErrorMode 
   Get 
   Set 
public:  
   property DocumentConverterJobErrorMode^ JobErrorMode 
   { 
      DocumentConverterJobErrorMode^ get() 
      void set(DocumentConverterJobErrorMode^ value) 
   } 
public DocumentConverterJobErrorMode getJobErrorMode() 
public void setJobErrorMode(DocumentConverterJobErrorMode value) 

Property Value

An DocumentConverterJobErrorMode enumeration member that specifies whether to abort or try to continue running jobs when an error occur. Default value is DocumentConverterJobErrorMode.Continue.

Remarks

When the value of this property is DocumentConverterJobErrorMode.Abort, any error that may occur while running a job will result in an exception being thrown.

If the value of this property is DocumentConverterJobErrorMode.Continue, then none critical errors can be logged and running continues. For example, if a source document has a page that could not be recognized. The offending page will be added to the final document as a graphics images and recognition will continue to the next page. In this mode, the engine will not throw an exception if an error occur, instead, all errors will be logged into the job's DocumentConverterJob.Errors collection. When conversion finishes, you can check if this collection is not empty and get the information of the errors and act upon them according to your application logic.

Refer to DocumentConverterJobOperation for information on which operation is considered critical.

Example

For an example, refer to DocumentConverterOptions.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Documents.Converters Assembly