If we move this below the if (stackTrace != null) check below, then we can just use return statements, rather than the resultException local