File Exception Handling

File exceptions occur when a method attempts an invalid operation on a file; for example, attempting to open a file that is already opened exclusively by another process. For file exceptions, JADE raises an instance of FileException. This class has an additional property, file, which is the File object that was being handled when the exception was raised.

There are at least two ways to handle FileExceptions. The examples in the following subsections may be helpful.