Try/catch used instead of throwing an exception