Throwing execption if file does not exists