failWith

fun <T> failWith(message: String): T

Throws a FailureThrowable, of which gatling-kt-ext is aware.

Gatling's official code just does throw new RuntimeException, this makes the detailedMessage more noisy than necessary.

For use in Java, which does not have a bottom type, this returns a generic T instead of Nothing, which would be more idiomatic in Kotlin.