code: public void includeErrorpage(CmsWorkplace wp, Throwable t) throws JspException {
  
          CmsLog.getLog(wp).error(Messages.get().getBundle().key(Messages.ERR_WORKPLACE_DIALOG_0), t);
          getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, wp);
          getJsp().getRequest().setAttribute(ATTRIBUTE_THROWABLE, t);
          getJsp().include(FILE_DIALOG_SCREEN_ERRORPAGE);
      }
docs: Displays the throwable on the error page and logs the error.<p>
  
  @param wp the workplace class
  @param t the throwable to be displayed on the error page
  
  @throws JspException if the include of the error page jsp fails