exception handle in file