If an exception was thrown in AutoAddParameters, it was not converted to a higher level CtreeSqlException and, therefore, may not be caught. Proper conversion logic was added to avoid this problem. This is a change in behavior because an exception is now caught.