interface TypeTransformationFailureHandler<in T : Any, out TSub : Any>
A handler which decides how the lambda -- which could have created subsequent assertions for the transformed AssertionPlant.subject if the transformation of the AssertionPlant.subject to type TSub did not fail -- should be used in reporting.
T
- The type of AssertionPlant.subject.
TSub
- The type to which AssertionPlant.subject should have been transformed to.
abstract fun createAndAddAssertionToPlant(warningTransformationFailed: Translatable, subjectPlant: BaseAssertionPlant<T?, *>, failingAssertion: Assertion, assertionCreator: AssertionPlant<TSub>.() -> Unit): Unit
Makes something with the given assertionCreator lambda; might add assertions to subjectPlant. |
class ExplanatoryTypeTransformationFailureHandler<T : Any, out TSub : T> : TypeTransformationFailureHandler<T, TSub>
Represents an AnyTypeTransformation.TypeTransformationFailureHandler which wraps subsequent assertions into an ExplanatoryAssertionGroup. |