private void registerThrowsExceptionFunction() {
    FunctionService.registerFunction(new ThrowsExceptionFunction());
  }
TRAC #41779: InternalExecution.setWaitOnExceptionFlag(true) does not add the exception from the
local node to the FunctionException list of exceptions

<p>
Extracted from {@link PRFunctionExecutionDUnitTest}.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/execute/FunctionExceptionsIncludeLocalMemberRegressionTest.java