failNext method
Makes the next call of operation throw error (once). With key,
only the next call for that key fails (write, read, delete).
Implementation
void failNext(
VaultOperation operation,
VaultException error, {
String? key,
}) => _failures[operation] = (error, key);