open fun withRepresentationForFailure(translatable: Translatable): FeatureExtractorBuilder.FeatureExtractionStep<T>
Uses translatable as representation which will be used in case the extraction cannot be performed.
open fun withRepresentationForFailure(representationProvider: () -> Any?): FeatureExtractorBuilder.FeatureExtractionStep<T>
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>
Uses the given representation in case the extraction cannot be performed.
Notice, if you want to use text (e.g. a String), then wrap it into a RawString via RawString.create and pass the RawString instead.