open fun withRepresentationForFailure(representationProvider: () -> Any?): FeatureExtractorBuilder.FeatureExtractionStep<T>
(source)
Uses the given representationProvider, by turning it into a LazyRepresentation, to get the representation which will be used in case the extraction cannot be performed.
abstract fun withRepresentationForFailure(representation: Any): FeatureExtractorBuilder.FeatureExtractionStep<T>
(source)
Uses the given representation in case the extraction cannot be performed.
Notice, if you want to use text (a String which is treated as raw string in reporting) as representation, then wrap it into a Text and pass it instead.