Seems I have found. I must do:
try{
    File file;
    try {
        file = File(path);
    }
    catch (Exception exp)
    {
        return;
    }

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


Reply via email to