ERR

The ERR() function returns the code of the last emitted error. It can be used in an error handling routine.