Exception handling found in ...
-
catch(Exception e)
{
throw new Exception("Error while processing file");
}I could just cry.
Well, it does confirm that it was during the processing of the file rather than before or after it. Yes, a pedant might bemoan the suppression of detail about what the error was but the writer has at least given a clue as to when it occurred.
98.4% of statistics are made up on the spot.
-
Well, it does confirm that it was during the processing of the file rather than before or after it. Yes, a pedant might bemoan the suppression of detail about what the error was but the writer has at least given a clue as to when it occurred.
98.4% of statistics are made up on the spot.
-
catch(Exception e)
{
throw new Exception("Error while processing file");
}I could just cry.
-
catch(Exception e)
{
throw new Exception("Error while processing file");
}I could just cry.
-
Well, it does confirm that it was during the processing of the file rather than before or after it. Yes, a pedant might bemoan the suppression of detail about what the error was but the writer has at least given a clue as to when it occurred.
98.4% of statistics are made up on the spot.
In that light the following would be better:
throw new Exception(message, oldException);
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
catch(Exception e)
{
throw new Exception("Error while processing file");
}I could just cry.