About Question com.enthuware.ets.scwcd.v5.2.287 :

Moderator: admin

Post Reply
bassem_labib
Posts: 2
Joined: Wed Sep 25, 2013 6:13 am
Contact:

About Question com.enthuware.ets.scwcd.v5.2.287 :

Post by bassem_labib »

It gives me the following answer as correct, but I don't think so;
"This can be done even if the exact class of the exception is not known at compile time."

please help and explain!!

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scwcd.v5.2.287 :

Post by admin »

Hello,
The given explanation shows an example of exactly how that is done. It maps an error page for RuntimeException. From the servlet, you can throw any subclass of RuntimeException and the same exception page will be used.

HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests