powered by
Exception$getLastException(...)
Exception
tryCatch
For a complete example see help(Exception).
Run the code above in your browser using DataLab