part of '../persistence.dart'; /// Adapter-neutral repository failure. sealed class RepositoryFailure { const RepositoryFailure({ this.entityId, this.expectedRevision, this.actualRevision, this.message, }); /// Stable id of the entity related to the failure, when available. final String? entityId; /// Revision the caller expected for a compare-and-set operation. final core.Revision? expectedRevision; /// Revision currently stored by the adapter. final core.Revision? actualRevision; /// Optional non-localized diagnostic text for logs and tests. final String? message; }