Returns two strings in a given language that provide information on an error. One string contains a user-readable description of the error; the other string contains technical details for debugging purposes, with a specified line feed character applied to the technical details string. The error is identified by an error number and description.
If you do not need to apply a specific line feed character, use GetFormattedError. |
<HsvResourceManager>.GetFormattedErrorWithLineFeed lLanguageId, hr, bstrXMLError, bstrDefaultError, bstrLineFeed, pvarbstrFormattedError, pvarbstrTechnicalError
Long (ByVal). Identifies the language for which the strings will be returned. Pass one of the HFMConstants type library constants listed in Supported Language Constants. | |
Long (ByVal). The HRESULT that identifies the error. In Visual Basic and VBScript, you can get the HRESULT with the Number property of the Err object. | |
String (ByVal). The XML string that describes the error. In Visual Basic and VBScript, you can get the XML string with the Description property of the Err object. | |
String (ByVal). A default error message string. If the error is not generated by Financial Management, the specified default string is returned by the pvarbstrFormattedError argument. The way this works is that GetFormattedError first looks for a resource string that corresponds to the XML string passed in the bstrXMLError argument. If no matching resource string is found, GetFormattedError looks for a resource string that corresponds to the passed HRESULT. If no matching resource string is found, then the default string is returned. | |
String (ByVal). The line feed character to apply to the pvarbstrTechnicalError argument’s string. | |
Variant. Returns a simple description of the error. This is text that can be displayed to the user. | |
Variant. Returns detailed technical information regarding the error. For more information, see System Message Detail Strings. |