public FunctionException getException() {
      return exception;
    }
Returns an exception that occurred during function exception.

@return the exception, or null
geode-core/src/main/java/org/apache/geode/internal/cache/snapshot/WindowedExporter.java