Error handling for missing file download

Hi, I'm trying to set up error handling for a missing file upon performing a file download of a specialization of the System.FileDocument called InvoiceDoc. In my situation the actual (PDF) files are missing in my DB due to copying of a test-database, however the InvoiceDoc is available. I'd expect the errorhandler below to catch a missing file error but unfortunately it is not. Resulting upon executing this MF when the file document is missing: Is there any way to catch the missing file error? Thanks in advance, Kelvin
1 answers

I did not test it myself but you might try a workaround by using the community commons getFileSize first and check if it is zero.