final InvalidMetadataErrorContext context = InvalidMetadataErrorContext.fromUserException(result.getException()); datasetValidityChecker = new Predicate<DatasetConfig>() { final ImmutableSet<List<String>> keys = ImmutableSet.copyOf(context.getPathsToRefresh());
throw UserException.invalidMetadataError() .setAdditionalExceptionContext( new InvalidMetadataErrorContext(Collections.singletonList(tableSchemaPath))) .build(logger);
final UserException.Builder builder = UserException.invalidMetadataError() .setAdditionalExceptionContext( new InvalidMetadataErrorContext(Collections.singletonList(tableSchemaPath))) .addContext("new mapping", mapping.toString());