doc / ch.tutteli.atrium.domain.builders.creating.changers / SubjectChangerBuilder / FailureHandlerOption / withFailureHandlerAdapter

withFailureHandlerAdapter

open fun <R1> withFailureHandlerAdapter(failureHandler: SubjectChanger.FailureHandler<R1, R>, map: (T) -> R1): SubjectChangerBuilder.FinalStep<T, R> (source)

Uses the given failureHandler as SubjectChanger.FailureHandler to create the failing assertion in case the subject change fails but previously maps the subject from T to R1 as the failure handler only deals with R1 subjects.