code: protected void addLoadError(PdfContext context, ImageException e) {
  		Bbox imageBounds = e.getRasterImage().getBounds();
  		float scaleFactor = (float) (72 / getMap().getRasterResolution());
  		float width = (float) imageBounds.getWidth() * scaleFactor;
  		float height = (float) imageBounds.getHeight() * scaleFactor;
  		// subtract screen position of lower-left corner
  		float x = (float) (imageBounds.getX() - rasterScale * bbox.getMinX()) * scaleFactor;
  		// shift y to lower left corner, flip y to user space and subtract
  		// screen position of lower-left
  		// corner
  		float y = (float) (-imageBounds.getY() - imageBounds.getHeight() - rasterScale * bbox.getMinY()) * scaleFactor;
  		if (log.isDebugEnabled()) {
  			log.debug("adding failed message=" + width + ",height=" + height + ",x=" + x + ",y=" + y);
  		}
  		float textHeight = context.getTextSize("failed", ERROR_FONT).getHeight() * 3f;
  		Rectangle rec = new Rectangle(x, y, x + width, y + height);
  		context.strokeRectangle(rec, Color.RED, 0.5f);
  		context.drawText(getNlsString("RasterLayerComponent.loaderror.line1"), ERROR_FONT, new Rectangle(x, y
  				+ textHeight, x + width, y + height), Color.RED);
  		context.drawText(getNlsString("RasterLayerComponent.loaderror.line2"), ERROR_FONT, rec, Color.RED);
  		context.drawText(getNlsString("RasterLayerComponent.loaderror.line3"), ERROR_FONT, new Rectangle(x, y
  				- textHeight, x + width, y + height), Color.RED);
  	}
docs: Add image with a exception message in the PDF document.
  
  @param context
  PDF context
  @param e
  exception to put in image