Error Handling

The methods in this document return HRESULT error numbers that can be trapped in error handling. In Visual Basic, these error numbers are returned in the Err object’s Number property.

Financial Management reserves the hexadecimal range of 0x80040200 through 0x8004BFFF for error numbers. Financial Management also reserves the hexadecimal range of 0x8004C000 through 0x8004FFFF for third party components.

Note:

When a method successfully executes, 0 is returned by Err.Number.

Financial Management enables you to obtain both simple descriptions of errors that you can display to users and technical error information that can help debug issues. If Financial Management has been localized into a given language, you can also obtain error messages translated into that language. To take advantage of these features, use the HsvResourceManager type library. For details, see Error Handling and the HsvResourceManager Type Library.