Next: error_arg
error()This function, which you should only call inside an error handler for a catch statement (see Error-Handling Statements), returns the error code for the error which triggered the error handler. If you are not in an error handler, this function throws an
~error error.