assertk / assertk.assertions / hasMessage

hasMessage

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

Asserts the throwable has the expected message.