This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Exception handling there

 
Lalitha Chandran
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Could someone please tell me if Old Objective 4 is there in the Beta exam.

Section 4: Designing and Developing Servlets to Handle Server-side Exceptions
--------------------------------------------------------------------------------


4.1 For each of the following cases, identify correctly constructed code for handling business logic exceptions, and match that code with correct statements about the code's behavior: Return an HTTP error using the sendError response method; Return an HTTP error using the setStatus method.
4.2 Given a set of business logic exceptions, identify the following: The configuration that the deployment descriptor uses to handle each exception; How to use a RequestDispatcher to forward the request to an error page; Specify the handling declaratively in the deployment descriptor.
4.3 Identify the method used for the following: Write a message to the WebApp log; Write a message and an exception to the WebApp log.


Thanks in advance
Regards,
Lalitha Chandran
 
hover cheng
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think 4.1 & 4.2 is still there, but not quite sure whether 4.3 is there.
Anyway, 4.3 is not too complex, we can achieve it using:
void ServletContext.log(String msg)
void log(String message, Throwable throwable )
 
Lalitha Chandran
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks for the reply. But I have gone through the new objectives, but I didn't find the old objective 4.1 and 4.2 in them.
Could you please tell me which new objective covers exception handling.
Thank you
Regards,
Lalitha Chandran
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic