You have to catch the exception in your page:
show something to the user
But you shouldn't use exception handlingfor this, because it is fairly
expensive. You should only use it for exceptional conditions that normally
do not happen, e.g. your database can't be reached.