The else is implicit. The next line throws the IOException so something else down the chain can catch it.

-Tim

Steffen Heil wrote:
Hi

I just read the DefaultServlet code and found in  doGet(...)  the following:

        try {
            serveResource(request, response, true);
        } catch( IOException ex ) {
            // we probably have this check somewhere else too.
            if( ex.getMessage() != null
                && ex.getMessage().indexOf("Broken pipe") >= 0 ) {
                // ignore it.
            }          // HERE
            throw ex;
        }


It seems there is a "else" missing ? Otherwise, it is just NOT ignored the the complete catch Statement makes no sense.

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to