failSaves

fun failSaves(cause: Throwable, thrown: Boolean = false, times: Int = Int.MAX_VALUE)(source)

As failLoads, for save. A failed save stores nothing.

Parameters

cause

the failure to deliver.

thrown

whether to throw it instead of returning it; false by default.

times

how many saves fail before the store heals; at least 1, every one by default.

Throws

if times is below 1 (a script of no failures is heal).