Spring Framework NestedServletException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework NestedServletException class.

This code example shows how to use the following methods:
		} 
		catch (IOException ex) { 
			throw ex; 
		} 
		catch (Exception ex) { 
			throw new NestedServletException("View rendering failed", ex); 
		} 
	} 
 
	/** 
	 * Retrieve the View instance and model Map to render 
	 * and trigger actual rendering. 
	 * @param request current HTTP request 
	 * @param response current HTTP response 
	 * @throws Exception in case of any kind of processing failure 
	 * @see org.springframework.web.servlet.View#render 
	 */ 
	@SuppressWarnings("unchecked") 
	protected void renderView(HttpServletRequest request, HttpServletResponse response) throws Exception { 
		View view = (View) request.getAttribute(VIEW_ATTRIBUTE); 
6
CodeRank
This code example shows how to use the following methods:
			return this.engine.createTemplateByPath(viewUrl); 
		} 
		catch (ClassNotFoundException ex) { 
			Throwable cause = (ex.getCause() != null ? ex.getCause() : ex); 
			throw new NestedServletException("Could not find class while rendering Groovy Markup view with name '" + 
					getUrl() + "': " + ex.getMessage() +  "'", cause); 
		} 
	} 
 
} 
5
CodeRank
This code example shows how to use the following methods:
					throw (ServletException) ex; 
				} 
				if (ex instanceof RuntimeException) { 
					throw (RuntimeException) ex; 
				} 
				throw new NestedServletException("Unhandled exception", ex); 
			} 
		} 
	} 
 
	/** 
	 * Redirect the user according to the specified exception. 
	 *  
	 * @param resourceThatNeedsAuthorization 
	 * @param e The user redirect exception. 
	 * @param request The request. 
	 * @param response The response. 
	 */ 
	protected void redirectUser(UserRedirectRequiredException e, HttpServletRequest request, 
			HttpServletResponse response) throws IOException { 
5
CodeRank
This code example shows how to use the following methods:
            BinRpcInvocationResult result = invokeAndCreateResult( invocation, this.client ); 
            writeInvocationResult( res, result ); 
        } 
        catch ( ClassNotFoundException ex ) 
        { 
            throw new NestedServletException( "Class not found during deserialization", ex ); 
        } 
 
        return null; 
    } 
 
    private BinRpcInvocation readInvocation( final HttpServletRequest req ) 
        throws IOException, ClassNotFoundException 
    { 
        InputStream in = req.getInputStream(); 
        ObjectInputStream ois = new ObjectInputStream( in ); 
 
        try 
        { 
            Object obj = ois.readObject(); 
3
CodeRank