code: public Pane asPane(final String userReadableError) {
          LOG.debug("Generating node corresponding to ExceptionPane...");
          final Label messageLabel = new Label(userReadableError);
          final TextArea throwableDataLabel = new TextArea(formatErrorMessage(this.exception));
  
          AnchorPane.setLeftAnchor(messageLabel, ERROR_FIELD_MARGIN_SIZE);
          Nodes.centerNode(throwableDataLabel, ERROR_FIELD_MARGIN_SIZE);
          return new AnchorPane(messageLabel, throwableDataLabel);
      }
docs: Same as {@link #asPane()} but with a custom error label on top of the stack trace.
  
  @param userReadableError The custom error message.
  
  @return The exception in a pane with the custom error message as a label over the stacktrace.