Prevent SQL runtime error by throwing an exception
Prevent SQL runtime error by throwing an exception