Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devearl1156yTell your boss to put the try-catch statements in a while(1){} loop to force the data out.
-
frugant1646y@xewl @-ANGRY-CLIENT it was an IOException (I don't remember why) but he had the bad convintion that by retrying in the catch block the code can't throw anymore the same exception :/
-
hexc11196yIf you fail try until you succeed!
do {
Exception ex = null;
try {
//Write code
} catch(Exception e) {
ex = e;
}
} while (ex != null);
(P.S.- Don't code like this!)
Related Rants
At customer site with my boss.
Boss: let's check this code which is not working
Me: ok (starting the debugging session)
I found this code, which was failing during the writing on disk for some reasons.
try
{
....
writer.writeline(some data);
....
}
catch(Exception ex)
{
....
}
Boss: ok it fails to write data but we need to, let's manage it like this:
try
{
....
writer.writeline(some data);
....
}
catch(Exception ex)
{
writer.writeline(some data);
....
}
rant
boss
code
c#
exception handling