trimmedAssert
inline fun <R> trimmedAssert(vararg excludeFromStack: KClass<*>, crossinline assertion: () -> R): R(source)
returns the output of assertion, or cleans up the stacktrace of any assertion errors before rethrowing
Since
0.12.4
inline fun <T, R> T.trimmedAssert(vararg excludeFromStack: KClass<*>, crossinline assertion: T.() -> R): R(source)
Removes the noise at the beginning of a stacktrace, in the event that assertion fails.