code: protected final void sendError(Exception e, StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException {
          sendError(e.getMessage(),req,rsp);
      }
docs: Displays the error in a page.