@ Override protected void paintComponent ( final RenderContext renderContext ) { if ( renderContext instanceof WebXmlRenderContext ) { PrintWriter writer = ( ( WebXmlRenderContext ) renderContext ) . getWriter ( ) ; writer . println ( getMessage ( ) ) ; if ( developerFriendly ) { writer . println ( "<pre style=\"background: lightgrey\">" ) ; writer . println ( "Additional details for the developer:" ) ; writer . println ( ) ; error . printStackTrace ( writer ) ; writer . println ( "</pre>" ) ; } } }
Renders this FatalErrorPage .