wclGetErrorInfo(Integer,string,string,string,string) Method

Reads the error information.

Namespace: wclHelpers
function wclGetErrorInfo(const Error: Integer; out Framework: string;
 out Category: string; out Constant: string; out Description: string): Boolean;

Parameters

Error
Type: Integer

The WCL error code.

Framework
Type: string

If the function completed with success on output contains the WCL Framework name that the error relates to.

Category
Type: string

If the function completed with success on output contains the error category.

Constant
Type: string

If the function completed with success on output contains the error constant name.

Description
Type: string

If the function completed with success on output contains the error description.

Return Value

Type: Boolean

If the function completed with success the returning value is True. Otherwise the function returns False.

The function uses the errors.xml file located on our site. The file link is https://www.btframework.com/errors.xml

If you want to use local file or implement the function in different way you can use the sample code we published on GitHub and available by this link: https://github.com/btframework/ErrorToText