Added a custom exception to indicate an unexpected input file format