exception

fun FakeContext.exception(message: String = string()): Exception

Generates an exception.