raise
- Throwing an abort exception
If you want to interrupt xmake running in custom scripts and plug-in tasks, you can use this interface to throw an exception. If the upper layer does not show the call to try-catch, xmake will be executed. An error message is displayed.
Additionally, this will cause the xmake program to terminate and exit.
lua
if (errors) raise(errors)
If an exception is thrown in the try block, the error information is captured in catch and finally. See: try-catch