throwsException top-level constant Null safety

Matcher const throwsException

A matcher for functions that throw Exception.

See throwsA for objects that this can be matched against.

Implementation

const Matcher throwsException = Throws(isException);