A matcher for functions that throw StateError.
See throwsA for objects that this can be matched against.
const Matcher throwsStateError = Throws(isStateError);