Don't show "previous exception:" or "local variables:" at all if they are not applicable
Extract PrettyPrinter->renderLocation()