expectErrorType

open override fun <E : Throwable> expectErrorType(expected: KClass<E>): ExpectDsl<T>

Creates a dynamic test expecting an error of a specific type.

Return

This DSL instance for method chaining.

Parameters

E

The type of the expected error.

expected

The KClass of the expected error type.