I've successfully (and very easily I might add) set up an application to poll a directory for new files, process those file by calling a service and move them to a 'Processed' directory. I'm now attempting to deal with errors. What I need to do if the service throws an exception is i) move the file to an 'Problem' directory and ii) generate a log file in the same 'Problem' directory recording the exception.
The reference manual on exceptions states that after an exception is throw the message payload becomes the actual exception. So, my first, and most important, question is how do I configure SI to move a problem file to a specific output directory? My second requirement of logging the exception can probably be dealt with using a logging framework but if there's something built in I could use that would be great.