I tried to throw a simple exception and got the error: Unable to compile class for JSPC:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fjspadmin\_0002fcsr_0002fAccountBillto_0002ejspAccountBillto_jsp_0.java:229: Statement not reached. out.write("\r\n"); ^ 1 error Note that I am doing this inside an include file. And the including file is specifying the errorPage. e.g.
Thanks Pho [This message has been edited by Pho Tek (edited May 16, 2001).]
posted 19 years ago
I suspect the error is more related to your coding logic than throwing exceptions. Somewhere in your code a "return" or "throw someException" is there which is in "definite execute" path. There are some code under those return/throw kind of statement which can not be reached. So the compiler throws this error. Please post your code. regds maha anna [This message has been edited by maha anna (edited May 16, 2001).]