ImageGear .NET v25.0 - Updated
Error Handling
User Guide > How to Work with... > OCR > Concepts > Error Handling

The ImageGear OCR API reports errors in the same way as the other ImageGear APIs. OCR API uses ImGearOCRException for error reporting. This exception is inherited from ImGearException with an ErrorCode that begins with REC.

When an error occurs in the underlying native modules, ImageGear throws an ImGearOCRException with an ErrorCode of REC_ENGINE_FAILURE. You can use the Value1 property of ImGearException to obtain the original error code from the native recognition engine. This native code is duplicated in the System.Exception.Data dictionary as the Status member.