VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。
@ERROR
Windows ✓Linux ✓macOS ⏳
Syntax
@ERROR(<flags>)
Description
This function can be called after an error trap has occurred (see OPTION ERRORTRAP) and returns information about the error according to the flags used.
Valid flags are:
| E | function returns the error code, from which you can determine the type of error |
| N | function returns the line number containing the error |
If more than one flag is specified then each value in the returned string is separated by a field separator character in a form that can be split up into separate variables using the PARSE command.
OK
Unchanged.
Example
INFO Error @ERROR(E) at line @ERROR(N)