Page 1 of 1

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

Posted: Thu Sep 26, 2013 2:54 pm
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!!

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

Posted: Thu Sep 26, 2013 7:05 pm
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.