fix merge issues and rhai examples wip
This commit is contained in:
@@ -97,8 +97,13 @@ impl<E: std::fmt::Debug + std::fmt::Display> std::fmt::Display for Error<E> {
|
||||
Error::DB(e) => write!(f, "Database error: {}", e),
|
||||
Error::Decode(e) => write!(f, "Failed to decode model: {}", e),
|
||||
Error::Encode(e) => write!(f, "Failed to encode model: {}", e),
|
||||
Error::InvalidId(s) => write!(f, "Invalid ID: {}", s),
|
||||
Error::IdMismatch(s) => write!(f, "ID Mismatch: {}", s),
|
||||
Error::IdCollision(s) => write!(f, "ID Collision: {}", s),
|
||||
Error::TypeError => write!(f, "Type error"),
|
||||
}
|
||||
}
|
||||
}
|
||||
/// A transaction that can be committed or rolled back
|
||||
pub trait Transaction {
|
||||
/// Error type for transaction operations
|
||||
|
Reference in New Issue
Block a user