#[non_exhaustive]pub enum RepositoryError {
Show 16 variants
Read {
path: PathBuf,
source: Error,
},
ParseStatementBatch {
path: PathBuf,
source: Error,
},
ParseReference {
path: PathBuf,
source: Error,
},
ParseAllocation {
path: PathBuf,
source: Error,
},
ParseEntityType {
path: PathBuf,
source: Error,
},
ParseProperty {
path: PathBuf,
source: Error,
},
InvalidRequest(String),
ParseEntity {
path: PathBuf,
source: Error,
},
Snapshot(Error),
InvalidRepository(String),
InvalidSnapshot {
path: PathBuf,
message: String,
},
Edit {
path: PathBuf,
message: String,
},
Validation(Vec<Diagnostic>),
Write {
path: PathBuf,
source: Error,
},
ConcurrentChange(PathBuf),
Commit {
message: String,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Read
ParseStatementBatch
ParseReference
ParseAllocation
ParseEntityType
ParseProperty
InvalidRequest(String)
ParseEntity
Snapshot(Error)
InvalidRepository(String)
InvalidSnapshot
Edit
Validation(Vec<Diagnostic>)
Write
ConcurrentChange(PathBuf)
Commit
Trait Implementations§
Source§impl Debug for RepositoryError
impl Debug for RepositoryError
Source§impl Display for RepositoryError
impl Display for RepositoryError
Source§impl Error for RepositoryError
impl Error for RepositoryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for RepositoryError
impl !UnwindSafe for RepositoryError
impl Freeze for RepositoryError
impl Send for RepositoryError
impl Sync for RepositoryError
impl Unpin for RepositoryError
impl UnsafeUnpin for RepositoryError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more