What the God? I was not ready to post...

    File file;
    try {
        file = File(path);
    }
    catch (Exception exp)
    {
        return;
    }

    try {
        //Some actions with file
    }
    catch (ErrnoException)
    {
        return;
    }


catch (ErrnoException) is necessary because there is sometimes "Bad file descriptor" error. But now I have "Bad descriptior" in destructor. Where I must put my try/catch section to avoid it?

Thank you!

Reply via email to