== Compliant Solution

----
string s = "";
try 
{
  s = File.ReadAllText(fileName);
}
catch (Exception e) // Compliant
{  
  logger.LogError(e);
  throw;
}
----
or

----
string s = File.ReadAllText(fileName);
----
