<-->
BAN USER
Questions (1)
Comments (7)
Reputation 15
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
Question is very vague... It actually depends on the way you are re-throwing the exception. If you re-throw the caught exception as a inner exception parameter to constructor of new exception, original stack trace is maintained. (Note:Not all exception constructors support inner exceptions). But if you create new exception and re throw new exception, the original caught exception's stack trace is lost.
This is what I know...
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
I agree with what Vic said changing level++ to level + 1 in @Paul example will solve the problem
- <--> January 13, 2016