- Visual Basic. Error handling here is performed with the use of the On Error statement. If you do not use the On Error Resume Next statement anywhere in your code, any run-time error that occurs can cause an error message from the IErrorInfo object to be displayed and code execution stopped.
- Raw C++. ABBYY FlexiCapture SDK interface methods and properties cannot throw exceptions but return HRESULTs. The most important means for handling these return codes are the SUCCEEDED and FAILED macros. They test the HRESULT value and deduce from it what was the result of the operation – success or failure. To get a pointer to the IErrorInfo object interface, use the GetErrorInfo API function.
-
C++ with the Native COM support. The Native COM support technology translates the HRESULT codes of interface functions into exceptions of the special type - _com_error, and automatically uses information from the IErrorInfo object. Thus, a sequence of ABBYY FlexiCapture SDK methods may be enclosed by the statements:
-
C#. Automatically generated wrappers for COM interfaces detect errors and translate them to standard exceptions:
