Hi Guys,
My requirement is for any exception that is thrown i want to trap it in Exception class.
Below is my code for that
In one of the case I throw nullpointerexception but still it doesnt gets trapped in above funtion. Can you tell me what am i missingCode:@ExceptionHandler(Exception.class) public String handleException(Exception ex) throws IOException { return "newjsp.jsp"; }


Reply With Quote