• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can any child of java.lang.Exception spoil the show

 
Sandeep Kumar JakkarajuuuX
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All

Say I have a web-app running and some buggy class is throwing exceptions into my logs ...... will it spoil the performance of the application

if it is handled ? what if it is not handled ?

 
John de Michele
Rancher
Posts: 600
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess it really depends on which exception is being thrown, and how you handle it.

John.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49796
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome back . . .

Exceptions don't spoil "performance;" they stop the thread if they are not handled. As you doubtless know, only RuntimeExceptions and Errors can slip through undetected; checked Exceptions must be thrown or caught (or both). Apart from that I don't understand the question. If the Exceptions are logged, how can they affect your thread? Surely they have to be caught before they are logged?

And less of the !!##@#$, thank you very much!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic