A
Andy Fish
Hi,
I'm trying to find some documentation or guidelines on how to handle
exceptions within my servlet (i.e. within the doGet or doPost method).
specifically:
1. if an error occurs and I have handled the problem and sent the correct
response to the client, should I still throw ServletException? what will the
container do if I throw this exception?
2. what about unchecked exceptions, should I catch these and throw
ServletException or should I just let them propogate up?
I have had a look at the servlet spec but it doesn't really seem to say
much, especially about unchecked exceptions
Andy
I'm trying to find some documentation or guidelines on how to handle
exceptions within my servlet (i.e. within the doGet or doPost method).
specifically:
1. if an error occurs and I have handled the problem and sent the correct
response to the client, should I still throw ServletException? what will the
container do if I throw this exception?
2. what about unchecked exceptions, should I catch these and throw
ServletException or should I just let them propogate up?
I have had a look at the servlet spec but it doesn't really seem to say
much, especially about unchecked exceptions
Andy