Catch exceptions during get information about file