Could specific exception be used here?