• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Difference betn ServletException and Unavailable Exception

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic