ensure

inline fun <R, E : Exception> ResultBlock<R, E>.ensure(predicate: Boolean, block: () -> E)

If the predicate evaluates to true, then throw the exception form the body. This should usually be called in a "catching" block.