I am writing an application where a human user / a service will write excel files to a particular directory. Now the program will always listen to directory changes , will parse this excel and will try to convert this into a xml file based on a schema. Now I have few custom exceptions like
- InvalidFileException
- InvalidFormatException
- MissingDataException
etc.
I want to know is it a good idea to drive logic based on the exceptions? Means if it throws InvalidFile exception I want to execute some logic .. I am using WatchService from java 7