--- title: "AAL2DPXGetErrorMsg" slug: "a3s-cppprg-aal2dpxgeterrormsg-4-0" updated: 2026-11-11T10:02:33Z published: 2026-11-11T10:02:33Z canonical: "docs.onespan.com/a3s-cppprg-aal2dpxgeterrormsg-4-0" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # AAL2DPXGetErrorMsg ## Function prototype ```cpp aat_int32 AAL2DPXGetErrorMsg (aat_int32     errorNum,                               aat_int32*    szBuffer); ``` ## Description This function is called to transform an error code produced by one of the DPX-related functions into a clear text error message. It returns a pointer to the message text area. ## Parameters | Type | Name | Use | Description | | --- | --- | --- | --- | | aat_int32 | errorNum | I | The error code produced by one of the The error code produced by one of the Authentication Suite Server SDK functions. | | aat_ascii * | szBuffer | O | The error message corresponding to errorNum. The message area must be at least 100 bytes long and pre-allocated by the calling program (recommended buffer size is 100 bytes). |