Error handling for invalid directory path in Config File
Brought to you by:
nnapier
If the Config file has an invalid directory for the ProjectGraderOutputPath or StudentInstructionOutputPath, an exception is thrown:
Exception in thread "main" java.io.FileNotFoundException: C:\Desktop\ProjectAssignment_MathFunctions.doc (The system cannot find the path specified)
JavaGrader should more gracefully handle this situation. At the least, catch the exception and provide an error message to the user. More ideally, check that the directory exists when the TestCaseConfigFile object is created. If there are any errors, report those to the user, disable the effected part of the code, and terminate gracefully.