Replace the exception dance with light input validation.