Error handling
Error handling is based on the standard R approach, using the stop()
function.
This function throws an exception to be addressed at the end of the R function stack, where it is
passed to Netezza via the userError() function, which is part of the AE API. The
userError() function can also be called directly, resulting in an immediate R
process exit, and the error message being passed to Netezza.