protected void handleRenderException(FacesContext context,Exception e) throws IOException {
  if (LOGGER.isLoggable(Level.SEVERE)) {
    UIViewRoot root=context.getViewRoot();
    StringBuffer sb=new StringBuffer(64);
    sb.append("Error Rendering View");
    if (root != null) {
      sb.append('[');
      sb.append(root.getViewId());
      sb.append(']');
    }
    LOGGER.log(Level.SEVERE,sb.toString(),e);
  }
  if (e instanceof RuntimeException) {
    throw (RuntimeException)e;
  }
 else   if (e instanceof IOException) {
    throw (IOException)e;
  }
 else {
    throw new FacesException(e.getMessage(),e);
  }
}

protected void handleRenderException ( FacesContext context , Exception e ) throws IOException { if ( LOGGER . isLoggable ( Level . SEVERE ) ) { UIViewRoot root = context . getViewRoot ( ) ; StringBuffer sb = new StringBuffer ( 64 ) ; sb . append ( "Error Rendering View" ) ; if ( root != null ) { sb . append ( '[' ) ; sb . append ( root . getViewId ( ) ) ; sb . append ( ']' ) ; } LOGGER . log ( Level . SEVERE , sb . toString ( ) , e ) ; } if ( e instanceof RuntimeException ) { throw ( RuntimeException ) e ; } else if ( e instanceof IOException ) { throw ( IOException ) e ; } else { throw new FacesException ( e . getMessage ( ) , e ) ; } }
handles the case where rendering throws an exception .
