ok, i have a question
say i have a class that wraps all file accesing functions ( basicly opening, reading and closing )
all these file handling functions throw a FileException exception
i have a try block in that i open, read and close my file using the above mentioned class
let's say read method throws a FileException
that means the close method is not getting called, so in order to close the file i have to close it
in the catch (FileException &blabla) block ...
but what if the close method inside the catch also throws an exception?
so the question is: how do i desing the try catch block so that no FileException can be left uncatched
thx