Update file_parser.cc

Throw exceptions added.