Expanded the Invalid File exception

custom exception made