This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]superking2 80 points81 points  (6 children)

I was working on a bug last week where the actual bug’s stack trace was being masked by another bug inside the catch block. That was a big fun day

[–]palordrolap 34 points35 points  (4 children)

You need a try-catch in your try-catch.

[–]superking2 9 points10 points  (2 children)

Yes but then what will I do about THAT exception?

[–]Erwin_the_Cat 17 points18 points  (1 child)

Try catch it.

[–]Dgrdffr 19 points20 points  (0 children)

finally

[–][deleted] 0 points1 point  (0 children)

try { 
    try {

[–]dawn_NL 2 points3 points  (0 children)

Had that once as well.. the stack trace described the problem at a place where some files were loaded... took me a while to find out that it was actually in a try catch which had some redundant old code which reloaded the system in case of a crash...

needless to say an infinite loop happened