public final WorkbenchDialogBuilder exception(Exception exception) {
      this.exception = exception;
      return this;
    }
Defines the exception to be shown in an <b>error</b> dialog and
sets {@link WorkbenchDialog#details} to the stacktrace of this {@code exception}.

@param exception to be shown
@return builder for chaining
workbenchfx-core/src/main/java/com/dlsc/workbenchfx/model/WorkbenchDialog.java