exception property

Type exception
final

Exception Type can be provided instead of a custom matcher. Uses ParameterizedTypeMatcher instead of TypeMatcher/isA. Generated matcher will be 'throwsA(ParameterizedTypeMatcher(exception))'

output: HeightNotValidException

instead of

matcher: throwsA(isA<HeightNotValidException>)

Implementation

final Type exception;