Open Kyle-Falconer opened 10 years ago
Here is a sample implementation from CourtScheduleIO
String niceMessage = String.format("Could not determine the team id from '%s' in row %i, column %i", teamString, currentRow.getRowNum(), columnCounter);
Main.errorQuit(niceMessage, e.toString());
Main.errorQuit
will handle the error message and quit the program, outputting the stack trace only if Main.LOG_LEVEL
is greater than 1 (which is currently considered the user level).
Shane expressed some dismay over the current (lack of) error messages coming out from CourtScheduleIO. He requested to have the Excel cell number returned along with some sort of usable error message so that he knows that he did something wrong.