@protected Future<void> tryOrSetError(Future<void> Function() cb) async { try { await cb(); } on DomainException catch (e) { update(errorProvider, e); } }