Obtain the error code, file name, and line number of the earliest push message in the error stack.
When an error occurs on a HiTLS interface, the user obtains an error code, file name, and line number. The obtained information is not deleted from the error stack.
- Attention
- If either of the two parameters is null, the file name and line number cannot be obtained.
- Parameters
-
file | [OUT] Obtains the name of the file where the error occurs, excluding the directory path. |
lineNo | [OUT] Obtain the line number of the file where the error occurs. |
- Return values
-
Error | code. The most significant 16 bits indicate the ID of the module where the error occurs, and the least significant 16 bits indicate the cause number. |