catch exception user input