throws

infix fun <T> AnsweringScope<T>.throws(error: Throwable)(source)

Function call always throws error.