throws

abstract fun throws(fn: Any, error: Any? = null, message: String? = null)

Assert: throws(fn, error, message)


abstract fun throws(error: Any? = null, message: String? = null, fn: () -> Unit)

Assert: throws(error, message, fn)