renderer.addRenderListener(nonIgnorableExceptionListener);
renderer.paint(g, new Rectangle(g.getSVGCanvasSize()), getRenderingArea(), getRenderingTransform());
// check if too many errors occurred
if(errorChecker.exceedsMaxErrors()) {
throw new WmsException("More than " + maxErrors + " rendering errors occurred, bailing out.",
"internalError", errorChecker.getLastException());
}
//check if a non ignorable error occurred