Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference betn ServletException and Unavailable Exception  RSS feed

 
Chhaya Dhanani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Pls let me know the differnece between ServletException and UnavailableException?
and also under what circumstances will these exceptions occur?
Thanx in adv
Chhaya
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ServletException is a general exception that the servlet container will catch and log. The cause can be anything you define. The exception may contain a root cause exception.
UnavailableException is derived from ServletException and has the specific meaning that the servlet is not presently available. This may be temporary or permanent. The servlet container should send a 503 error code as a response. Your servlet might throw a UnavailableException if a database was temporarily off-line.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!