assertk.assertions / hasMessage

hasMessage

fun Assert<Throwable>.hasMessage(message: String?): Unit

Platform and version requirements: Common

Asserts the throwable has the expected message.