fun <TExpected : Throwable> isThrowing(expect: <ERROR CLASS><() -> Any?>, expectedType: KClass<TExpected>): <ERROR CLASS>