I don't agree. If there is ANY error your code will be have invalid / unpredictable results and should quit the UDF then and there not set the UDF value to it.