Questions tagged as 'throw'

1
answer

What is the difference between "throw" and "throw ex"?

I saw that C # allows you to do ... try { //algum código } catch { throw; } too ... try { //algum código } catch (Exception ex) { throw ex; } and ... try { //algum código } catch (Exception) { throw; } My q...
asked by 28.09.2014 / 18:06
1
answer

Return method with throw

This method has the return type Connection , but in blocks catch there is no return conn and there is no compilation or execution error. I think it's for throws and throw but I do not know exactly why. pub...
asked by 13.11.2015 / 14:55
1
answer

The throw statement is leaving the system inconsistent

I have a try..catch and in catch the colleague who did leave just throw. catch(){throw;} Well, my intention is to treat all this exceptions and not only leave throw . But as I arrived here in the company, I arrived and have to...
asked by 27.11.2014 / 16:49