![]() ![]() |
|
Open Client Developer's Guide | |
Search | Index | Glossary | | |
![]() |
|
![]() |
![]() |
![]() |
Handling ComExceptionThe FileNet COMException is thrown when an unrecognized HRESULT is returned from a COM method call. The HRESULT field contains the HRESULT returned by the calling function. The actual error code can be accessed from exp.errorcode or Err.Number. To filter out a specific exception thrown by an IDM object, use a mechanism similar to the following:
The above sample is usually implemented in a Data Provider where IDM objects are heavily used. Developers are recommended to place the COMException error handler in a central location within the application, to enable conversion and localization of the IDM exceptions. Define your own error enumerator for each specific IDM exception that you want to handle. The following enumerator type is used to map the IDM error code (HRESULT):
|
![]() |
|